Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. how to read file till the specific string ?
QtWS25 Last Chance

how to read file till the specific string ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 654 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MokJ
    wrote on last edited by MokJ
    #1

    I have created client server chat application,
    I want server to receive all the data until the string I'm putting at the end of the data sent by client.
    What should be done here ?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Something's not clear, are you sending files through your chat client ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      M 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Something's not clear, are you sending files through your chat client ?

        M Offline
        M Offline
        MokJ
        wrote on last edited by
        #3

        @SGaist
        for example , If i'm sending "Hello world" at first
        and "Its a good life" at second
        but when server receives data, it displays "Hello worldIts a good life".
        I want to separate it with special charactor or something.

        VRoninV 1 Reply Last reply
        0
        • M MokJ

          @SGaist
          for example , If i'm sending "Hello world" at first
          and "Its a good life" at second
          but when server receives data, it displays "Hello worldIts a good life".
          I want to separate it with special charactor or something.

          VRoninV Offline
          VRoninV Offline
          VRonin
          wrote on last edited by VRonin
          #4

          @MokJ Hi, a few of us here in the forum are working on an example that is a chat client/server, we currently have 2 versions: one "less right" but uses less advanced stuff and one that is close to state of the art but uses non-trivial design patterns

          I was wondering if you could help us help you. Take a look at the examples and let us know if there are parts that you don't understand or are too convoluted.

          There's also a draft of wiki article with more descriptive explanations for the "less right" client

          "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
          ~Napoleon Bonaparte

          On a crusade to banish setIndexWidget() from the holy land of Qt

          M 1 Reply Last reply
          6
          • VRoninV VRonin

            @MokJ Hi, a few of us here in the forum are working on an example that is a chat client/server, we currently have 2 versions: one "less right" but uses less advanced stuff and one that is close to state of the art but uses non-trivial design patterns

            I was wondering if you could help us help you. Take a look at the examples and let us know if there are parts that you don't understand or are too convoluted.

            There's also a draft of wiki article with more descriptive explanations for the "less right" client

            M Offline
            M Offline
            MokJ
            wrote on last edited by
            #5

            @VRonin sure thing ,I'll check that out. Thank you.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved