- UNIT-I (Array)
Definition
Macro substitution directives
File inclusion directives
Conditional compilation
Bitwise Operators
Shift operators
Masks
Bitfield
Macro substitution directives
File inclusion directives
Conditional compilation
Bitwise Operators
Shift operators
Masks
Bitfield
Definition of Files
A file is a collection of data stored in one unit, identified by a filename. It can be a document, picture, audio or video stream, data library, application, or other collection of data.
the most important file management functions available in 'C,'
function | purpose |
fopen () | Creating a file or opening an existing file |
fclose () | Closing a file |
fprintf () | Writing a block of data to a file |
fscanf () | Reading a block data from a file |
getc () | Reads a single character from a file |
putc () | Writes a single character to a file |
getw () | Reads an integer from a file |
putw () | Writing an integer to a file |
fseek () | Sets the position of a file pointer to a specified location |
ftell () | Returns the current position of a file pointer |
rewind () | Sets the file pointer at the beginning of a file |
कोई टिप्पणी नहीं:
एक टिप्पणी भेजें