alternative to fscanf
-
-
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
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:
-
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
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
-
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
In MFC you have the CStdioFile or the CFile Classes... Best Regrards....:-D Carlos Antollini. Sonork ID 100.10529 cantollini