Fundamental concept of Problem solving
Problem solving strategies
Program design & implementation
Introduction to C
Introduction to C
How to open C program code window
Description of C code window
Editing File
Saving and Running a program
The components of C language
Structure of C Program
A sample of C language program
C character set and keywords
C character set and keywords
The C character set
Key words
Data Types
Data Types
Primary Data Type
Secondary Data Type
Rules for constructing variables names
Variable declaration
Assigning values to variables
Scope of variables: Local & Global
Character constants
Integer constants
Real constants
Logical & String constants
C instruction set
Type Declaration & Input/Output Instructions
Arithmetic Instructions
Control Instructions
Arithmetic operators
Relational operators
Logical operators
Increment & Decrement operators
Bitwise operators
Conditional & ternary operators
The comma operators
Size of operator
Assignment operator
Type modifier
Evaluation of expression
Automatic type conversion
Basic Input/Output
Console I/O function
Disc & Port I/O function
Control Structures
Sequence control statements
Decision control & conditional statements
Case control statements
Repitition & loop control statements
Some more statements
Array and String
Introduction of Array
Array Declaration
Array Initialization
Two Dimensional Array
Multi Dimensional Array
Function and Recursion
Function Definition
Function Declaration
Function Call
Pointer expression
Pointer & functions
Pointer & Array
Multi Dimensional Arrays & Pointer
Arrays of Pointer
Use of Pointer & functions
Giving values to member
Structure Initialization
Comparison of structure variables
Arrays of structures
Arrays within structures
Structures within structures
Passing structure to function
Accessing a union member
Initialization of Union variable
Uses of Union
Dynamic Data Structure
Linked list
Data File Handling through C
File operation
Opening & closing a data file
Creating a data file
Processing a data file
Unformatted data file
C Preprocessor & Macro
Macro substitution directives
File inclusion
Compiler control directive
Command line parameter of C
Command line parameter
Header file
Header file
Use of library functions
Some Useful library functions

Data File Handling through C


Many applications require that information be written to or read from an auxiliary memory.
Such information is stored on the memory device in the form of a data file.
Thus files allow us to store information permanently, and to access and alter that information whenever necessary.
In C, an extensive set of library; functions is available for creating and processing data files. Unlike other files.
However, there are two different types of data files
1. Stream-oriented (or standard) data files:
Stream oriented data files are generally easier to work with and are therefore more commonly used.
Stream-oriented data files can be subdivided into two categories.
The first category are text files, consisting of consecutive characters. There characters can be interpreted as individual data items, or as components of strings or numbers.
2. System-oriented (or low level) data files:
System-oriented data files, often referred to as unformatted data files, organizes structures, such as arrays and structures.
A separate set of library functions is available for processing stream-oriented data files of this type.
These library functions provide single instructions that can transfer entire arrays or structures to or from data files.
Note: Library function has been discussed in detail in next section.