Develop a C program to perform sequential file access(using read mode and write mode)
Answers
Answered by
0
Answer:
The simplest way that C programming information is stored in a file is sequentially, one byte after the other. The file contains one long stream of data.
File access in C is simply another form of I/O. Rather than go to the display, the input or output goes into a file. A file is opened by using the fopen() function:
handle = fopen(filename,mode);
The fopen() function requires two arguments, both strings. The first is a filename; the second is a mode. The fopen() function returns a file handle, which is a pointer used to reference the file. That pointer is a FILE type of variable.
Attachments:


Similar questions