Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. alternative to fscanf

alternative to fscanf

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
4 Posts 4 Posters 0 Views 1 Watching
  • 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
    meirav
    wrote on last edited by
    #1

    Hi, i need to read data from an ascii file , but from some reason there is a conflict in my programm with the lib files and i can't use the fscanf . is there any other way to read from the file( in Ascii )??? * i am using an MFC application. Thankyou :-O

    N RaviBeeR C 3 Replies Last reply
    0
    • M meirav

      Hi, i need to read data from an ascii file , but from some reason there is a conflict in my programm with the lib files and i can't use the fscanf . is there any other way to read from the file( in Ascii )??? * i am using an MFC application. Thankyou :-O

      N Offline
      N Offline
      Nemanja Trifunovic
      wrote on last edited by
      #2

      If you are using MFC, take a look at CStdioFile class. You can use its member ReadString to read a line of text into CString, and than you can parse the information you want from here. I vote pro drink :beer:

      1 Reply Last reply
      0
      • M meirav

        Hi, i need to read data from an ascii file , but from some reason there is a conflict in my programm with the lib files and i can't use the fscanf . is there any other way to read from the file( in Ascii )??? * i am using an MFC application. Thankyou :-O

        RaviBeeR Offline
        RaviBeeR Offline
        RaviBee
        wrote on last edited by
        #3

        meirav wrote: from some reason there is a conflict in my programm with the lib files and i can't use the fscanf This seems to be indicative of a larger problem. fscanf() is present in msvcrtl.dll and should be available for use. However, if you don't want to use it because you're not doing standard C file I/O, you could use MFC's file read functions and sscanf() to parse the data. /ravi "There is always one more bug..." ravib@ravib.com http://www.ravib.com

        1 Reply Last reply
        0
        • M meirav

          Hi, i need to read data from an ascii file , but from some reason there is a conflict in my programm with the lib files and i can't use the fscanf . is there any other way to read from the file( in Ascii )??? * i am using an MFC application. Thankyou :-O

          C Offline
          C Offline
          Carlos Antollini
          wrote on last edited by
          #4

          In MFC you have the CStdioFile or the CFile Classes... Best Regrards....:-D Carlos Antollini. Sonork ID 100.10529 cantollini

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups