Fileinputstream and fileoutputstream


Question 1:

Write down a program to echo every line entered by the user, unless the line is the empty line (in which case, the program ends).

Question 2:

Write down a program to copy the text file called "UPTEC.DAT" to "BACKUP.DAT". As well write the same program by using the FileInputStream and FileOutputStream.

Question 3:

Write down a program to make a data file called temperature.dat. User enters temperature of the day after every few seconds and the data will be noted down in the data file. As well determine the highest temperature of the day.

Question 4:

Write down a program to display all the sub-directories present on the hard disk.

Question 5:

Write down a program to count the number of characters, number of words and lines in the file.

Question 6:

Write down a program to make a random access file which can store details of about five employees. Details comprise empno, name, address, salary. Compute total salary given to all employees. As well display the alternate records.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Fileinputstream and fileoutputstream
Reference No:- TGS08758

Expected delivery within 24 Hours