-
Junior Member
How can we connect to a text file using C/C++?
What is the method to write to and read from a external text file using C/C++?
-
Junior Member
Re: How can we connect to a text file using C/C++?
wat do u mean by external text file
u can read and write to a text file using CStdIOFile ( using MFC)
or simple File ( non-MFC )
-
Junior Member
Re: How can we connect to a text file using C/C++?
hi
FILE *fp;
fp = fopen( Fname, "r");
fclose( fp );
try with fread(), fwrite() and fscanf(), fprintf()
-
Junior Member
Re: How can we connect to a text file using C/C++?
use fopen function to open a text file. there is no connection actually. in the function fopen the path of the file can be stated.
-
Junior Member
Re: How can we connect to a text file using C/C++?
Use C input output functions to read and write to a text file.
Have a look on this link...
http://www.cs.bu.edu/teaching/c/file-io/intro/
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules