
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

KING SAUD UNIVERSITY COLLEGE OF COMPUTER AND INFORMATION SCIENCES INFORMATION TECHNOLOGY DEPARTMENT CSC 11 3 : Java Programming 2 Tutorial 9 Fall 2020 Files 1 1 Q 1 : write a program to open a file named filename.dat and test whether the file is readable/writable/file or directory. Q2 : suppose you have a text file file1.txt a) write a program to read the content of it and display it to the user. note : handle exception in main. b) write a program to read from the user and append the user input at the end of the file. Q3 : A comma-separated values or CSV file is a simple text format used to store a list of records. write a program to read such file and display each value separately.