Parse file in vc++
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 1 of 3 123 LastLast
Results 1 to 15 of 32

Thread: Parse file in vc++

  1. #1
    Join Date
    Jun 2012
    Posts
    14

    Parse file in vc++

    Please how to parse file in vc++,visual studio 2010 ide.
    parse text file or any simple file, please kindly send me the sample code example. Here I tried with one example but unable to parse...
    please kindly help me asap...

    Thanks & Regards,
    M.G.Rajendra Prasad

  2. #2
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    5,927

    Re: Parse file in vc++

    Please define "parse text file or any simple file"
    Best regards,
    Igor

  3. #3
    Join Date
    Nov 2003
    Location
    Belgium
    Posts
    8,062

    Re: Parse file in vc++

    We need more details.
    Basic file I/O can be done using std::ifstream.

  4. #4
    Join Date
    Jun 2012
    Posts
    14

    Re: Parse file in vc++

    Quote Originally Posted by Igor Vartanov View Post
    Please define "parse text file or any simple file"
    Please kindly send me how to parse file with example code.
    I am new to vc++.

    I need to parse flash driver,Parse application.
    how the thread concepts implement in vc++.

  5. #5
    Join Date
    Jun 2012
    Posts
    14

    Re: Parse file in vc++

    Quote Originally Posted by Marc G View Post
    We need more details.
    Basic file I/O can be done using std::ifstream.
    Please kindly send me how to parse file with example code.
    I am new to vc++.

    I need to parse flash driver,Parse application.
    how the thread concepts implement in vc++.

    I am here working on ECU Softwares.

  6. #6
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    5,927

    Re: Parse file in vc++

    I need to parse flash driver,Parse application.
    "Parse" eventually could be anything you can imagine. Explain what this term means for you. Besides, this new formula "parse flash driver" sounds even worse. Total gibberish.

    Please note, if you cannot clearly explain your problem, most probably you won't be helped. So please do your best.
    Best regards,
    Igor

  7. #7
    Join Date
    Jun 2012
    Posts
    14

    Re: Parse file in vc++

    Quote Originally Posted by Igor Vartanov View Post
    "Parse" eventually could be anything you can imagine. Explain what this term means for you. Besides, this new formula "parse flash driver" sounds even worse. Total gibberish.

    Please note, if you cannot clearly explain your problem, most probably you won't be helped. So please do your best.
    Please I need to parse this below txt file in vc++.
    Please kindly do the needful asap.

    >RequestDownload Service...
    >Memory Start Address:F00000 MemorySize: 8152 (001FD8)
    > W 7D3 (8) 10 08 34 F0 00 00 00 00 0.39012 0
    > R 7DB (8) 30 00 00 00 00 00 00 00 317.51842 2
    > W 7D3 (8) 21 1F D8 00 00 00 00 00 0.39195 0
    > R 7DB (8) 02 74 FF AA AA AA AA 00 317.52014 2
    >RequestDownload Service Complete!
    >----------------------------
    > TransferData Service...
    >----------------------------
    >[ Process Record - 1 ]
    > W 7D3 (8) 10 46 36 44 F0 00 00 00 0.44446 0
    > R 7DB (8) 30 00 00 00 00 00 00 00 317.57294 2
    > W 7D3 (8) 21 00 CA FE 00 00 00 00 0.44654 0
    > W 7D3 (8) 22 40 00 00 CC 00 00 00 0.44883 0
    > W 7D3 (8) 23 00 40 00 00 00 40 00 0.44885 0
    > W 7D3 (8) 24 00 00 00 00 00 10 40 0.44887 0
    > W 7D3 (8) 25 00 00 10 40 00 00 10 0.44888 0
    > W 7D3 (8) 26 00 00 00 7C 40 00 00 0.44890 0
    > W 7D3 (8) 27 90 40 00 00 90 00 00 0.44891 0
    > W 7D3 (8) 28 01 F0 40 00 02 80 40 0.44893 0
    > W 7D3 (8) 29 00 02 80 00 00 13 30 0.44894 0
    > W 7D3 (8) 2A F3 00 00 00 00 00 00 0.44900 0
    > R 7DB (8) 01 76 AA AA AA AA AA 00 317.57955 2
    >[ Process Record - 2 ]

    like this Process Record - 129.

  8. #8
    VictorN's Avatar
    VictorN is online now Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,274

    Re: Parse file in vc++

    Quote Originally Posted by Rajendramaraveni View Post
    Please I need to parse this below txt file in vc++.
    "to parse" as what?
    What data do you need to obtain from this file and in what form?
    Victor Nijegorodov

  9. #9
    Join Date
    Jun 2012
    Posts
    14

    Re: Parse file in vc++

    Quote Originally Posted by VictorN View Post
    "to parse" as what?
    What data do you need to obtain from this file and in what form?
    Please it is a text file and data related to req &reposnse of ECU

  10. #10
    VictorN's Avatar
    VictorN is online now Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,274

    Re: Parse file in vc++

    Quote Originally Posted by Rajendramaraveni View Post
    Please it is a text file and data related to req &reposnse of ECU
    Please, don't repeat again and again the same words!
    We already understood that you want to parse some text file.
    What we still don't know is:
    Quote Originally Posted by VictorN View Post
    "to parse" as what?
    What data do you need to obtain from this file and in what form?
    And BTW, what is "req &reposnse of ECU"?
    Victor Nijegorodov

  11. #11
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Posts
    12,047

    Re: Parse file in vc++

    Look at CStdioFile and CString::Tokenize().

    Beyond that, without a lot more details from you, I doubt anybody can help much. What part are you stuck on?

  12. #12
    Join Date
    Jun 2012
    Posts
    14

    Re: Parse file in vc++

    Quote Originally Posted by GCDEF View Post
    Look at CStdioFile and CString::Tokenize().

    Beyond that, without a lot more details from you, I doubt anybody can help much. What part are you stuck on?
    Automotive domain file related to ECU.Bootloader file and Application file, flushing this files from hardware which is in .sx file. Please I need parse mentioed above file. Please kindly help me.

  13. #13
    Join Date
    Jun 2012
    Posts
    14

    Re: Parse file in vc++

    Implement the Parser for bin files. I mentioned the file above.
    Please anyone kindly help me asap with Implement code also

  14. #14
    VictorN's Avatar
    VictorN is online now Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,274

    Re: Parse file in vc++

    Quote Originally Posted by Rajendramaraveni View Post
    Implement the Parser for bin files.
    And what could it mean?

    Quote Originally Posted by Rajendramaraveni View Post
    Please anyone kindly help me asap with Implement code also
    It would be no problem to help you if you explained what you need and what you mean by "parser".
    Last edited by VictorN; June 8th, 2012 at 06:01 AM.
    Victor Nijegorodov

  15. #15
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Posts
    12,047

    Re: Parse file in vc++

    Quote Originally Posted by Rajendramaraveni View Post
    Automotive domain file related to ECU.Bootloader file and Application file, flushing this files from hardware which is in .sx file. Please I need parse mentioed above file. Please kindly help me.
    I've been doing this 25 years, and that tells me nothing about what you're trying to do. Why are you being so stubborn about explaining what you need help with?

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center