Docsity

Java Programming 2 Tutorial 9 - File I/O Operations and CSV Reading, Essays (university) of Java Programming

Toggle sidebar
bg1
KING%SAUD%UNIVERSITY%
COLLEGE%OF%COMPUTER%AND%INFORMATION%SCIENCES%
INFORMATION%TECHNOLOGY%DEPARTMENT%
CSC%113:%Java%Programming%2!
Tutorial%9%
Fall%2020!
Files 1
1
Q1: 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 .

Partial preview of the text

Download Java Programming 2 Tutorial 9 - File I/O Operations and CSV Reading and more Essays (university) Java Programming in PDF only on Docsity!

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.