English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Write a program which reads data from a file named CS506.txt and displays it on the console. The program should read data from file line by line (not character by character).

2007-08-07 08:49:56 · 3 answers · asked by mujahid i 1 in Computers & Internet Programming & Design

3 answers

Here are some classes to look into to help get you started:
FileInputReader, BufferedReader

Here are some notable methods to look into:
BufferedReader.readLine()

2007-08-10 09:45:42 · answer #1 · answered by gregster439 2 · 0 0

Ummm no, you can find programs that do this online very simply. Just search for "java read external file" in any search engine.

2007-08-07 08:56:26 · answer #2 · answered by Tyler 2 · 0 0

What exactly are you asking here? Are you asking if you can do your assignment in Java? Are you asking someone to do your assignment for you?

2007-08-07 08:55:42 · answer #3 · answered by Jim Maryland 7 · 1 0

fedest.com, questions and answers