Programming Technique 1

C++ in my Programming Technique 1

front page.PNG.1

Why files are needed?

  • When a program is terminated, the entire data is lost. Storing in a file will preserve your data even if the program terminates.
  • If you have to enter a large number of data, it will take a lot of time to enter them all.
    However, if you have a file containing all the data, you can easily access the contents of the file using few commands in C.
  • You can easily move your data from one computer to another without any changes.

Introduction of File Input and Output

File Input and Output

input output introduction.PNG.1

Opening File

Opening File.PNG

Closing File

closing file.PNG.1

Page

Back To Home Page

Discrere Structure Page : 1 , 2 ;
French Page : 1 , 2 
Programming Technique 1 Page : 1 , 2 , 3 , 4 ;
Technology and Information System Page : 1 , 2 , 3 , 4 , 5 , 6 , 7 ;
Digital Logic Page : 1 , 2 , 3 , 4 ;

File Operations

File Operation

File operation.PNG.2

File operation 2.PNG.1

The Example of File input and Output

Example using file.PNG