CSC-113-Lab 9 - displaying the following message:”...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
KSU / CCIS / CS DEPARTMENT CSC-113, SPRING 2010 LAB 9 – FILE INPUT AND OUTPUT Exercise 1: Write a java program that will search a text file of strings representing numbers of type int and will write the largest and the smallest numbers to the screen. The file contains nothing but strings representing numbers of type int , one per line. Exercise 2: Write a java program that will search a binary file of numbers of type int and will write the largest and the smallest numbers to the screen. The file contains nothing but numbers of type int written to the file with writeInt . Exercise 3: Write a java program to append an input text to an existed file “alpha.txt” – use a try catch clause
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ( FileNotFoundException ) displaying the following message:” Problem opening file”. Exercise 4: Write a program, which searches a file of exam marks. The file created by a text editor has the following form . Ahmed 43 67 Bader 87 89 Naef 54 32 …………… The program will allow user to enter a file name and to enter a student name, which we assume is unique. The program will search the file, and display the marks for the chosen student on the screen – use a try catch clause ( IOException ) displaying the following message:” Error reading from Original Message”....
View Full Document

This note was uploaded on 11/28/2011 for the course COMPUTER S 113 taught by Professor Dr.safwanqasem during the Spring '11 term at King Saud University.

Ask a homework question - tutors are online