Nelle
April 15th, 1999, 04:07 AM
Hi ppl,
How do u write to a file, call the particular file n then print out the contents of the file in visual c++???
Thanks! :-)
fab
April 15th, 1999, 04:55 AM
If you make a console application:
you can use the functions fopen (to open a file for writing) ,
fread,or fscanf , or others (to read a file) , and printf ,or others,
to display the file content to screen .
If you make a windows application , to display the file content to
window client area you can use (for example) the API function TextOut .
Nelle
April 15th, 1999, 11:38 PM
Oops i think u got me all wrong. What i meant was how to write information which are not codes into a text file and print out the content of the particular text file which i have already written.i particularly interested in how to call the text file.
thanks again! :-)