Write and Read String in a Binary File in C Programming Language

Описание к видео Write and Read String in a Binary File in C Programming Language

Write and read string in a Binary file. There are two function use fwrite and fgread function as following syntax:
size_t fwrite(const char *ptr,size_t sie,size_t n,FILE *stream);
size_t fread(const char *ptr,size_t sie,size_t n,FILE *stream);


File Management in C Language.There are two type of file 1. Text file 2. Binary File. There are six mode of file binary file 1. wb for write 2. rb for read 3. ab for append 4. wb+ for write and read 5. rb+ for read and write 6. ab+ append and read. Definition of file : Data files mean we can stored permanently large volume of logical related data or logical related record in hard disk drive, it is called data files. File name is any valid characters combination to give file name.
FILE structure is known as data structure. FILE is defied datatype in C. The FILE structure is defined in C standard library I/O function. so, there header file is stdio.h

Комментарии

Информация по комментариям в разработке