Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Open a text file
02-01-2010, 05:40 PM
Post: #1
Open a text file
can anyone tell me how to open a text file?
Find all posts by this user
Quote this message in a reply
02-02-2010, 05:03 PM
Post: #2
RE: Open a text file
FILE *file;
file=fopen("file.txt", "ab");
fprintf(file, "Hello world");
fclose(file);
ab = append binary
you can choose
wb = write binary ( would erase the former content )
rb ( readable )
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:

Contact UsDeveloper SolutionReturn to TopReturn to ContentLite (Archive) ModeRSS Syndication