Read String from File.

Source Code:

Output:
Note : Data Reads fron s1.txt file.

Write string in file.

Source Code:

Output:
Note : Check s1.txt file for result at root derectory.

write data/numbers in file using while.

Source Code:

Output:
Note : Check File F2.txt at root for data.

Read data from file

Source Code:

Output:

Writing data in to the file one by one.

Source Code:

Output:
Note : Data inserted in f1.txt file check it for result.