Free
|
C language is a middle level language. It is a structured language. C language is a case sensitive language. All syntax written in c language is in lower case. C is the basis for C++.
|
|
|
|
File I/O : C Language Tutorial
fopen
- open a file
To open a file you need to use the fopen function, which returns a FILE pointer as stated above. fclose returns zero if the file is closed properly. Example:- FILE *fp; fp=fopen("c:\\new.txt", "w"); fprintf(fp, "New.\n"); Simple C Program to see how file handling worksInput File
Output File
COPYRIGHT 2009 ALL RIGHTS RESERVED FREECPROGRAMS.COM |
|