COMMAND LINE I/O IN C

Posted by Unknown 0 comments
image
command prompt window

 

Giving input to program is an important part of any program because after we supply some data then only we can get output based on that input. 

READ MORE

           

After having learned to read information from a file, now its time to know how to write to a file.
Now to write to a file we have to obviously create a file and then open it in write mode. This can be done by a single statement which is given below

                          
             fs=fopen(“abc.txt”,”w”);

Now you may be thinking what the about statement must be doing.

READ MORE




                                                         Need of File Handling:

The data that is generated by programs will be lost when the program is terminated. Hence for later use we need to store the information at some place and this place is FILE. 
File is a medium to store and later retrieve information.


READ MORE