Sunday, December 16, 2018

File Processing

Hi I want to share notes i get from my lecture


C sees files as stream, what is stream? Stream is a sequence of character, all input and output data is stream.

There are 2 types of file, text file and binary files.
- Text file is saved in text format or ASCII FILE
- Binary file is saved by storing numerical data in affixed format

Buffer area :  a part of a memory used as a temporary space before data is moved to a file.

if file is opened with fopen it will need to be closed with fclose

you can either read,write or append data from a file in C.
- read = store file in c
- write = to place a new data in the file
- append = to update new data to the file

No comments:

Post a Comment