Read a Text File
Revision as of 11:44, 31 December 2007 by 22.214.171.124 (New page: You can open a text file and read each line. ==Reading lines== <question xmlns:htm="http://www.w3.org/1999/xhtml" lang="java" className="Demo"><prog> import java.io.BufferedReader; import ...)
You can open a text file and read each line.
BufferedReaderrepresents a text file.
- You can create
- The while condition
things, it assigns the string s and it checks for null.
The text file [../haggis.txt haggis.txt] includes some lines of text.