This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Not sure what you mean by reading a file into a java program. If you just want your java program to read a text file... wrap a buffered reader around a file reader, and then use it's reaadline method to read one line at a time. FileReader fr = new FileReader("Youfilename") BufferedReader br = new Bufferedreader(fr) String line = be.readLine() while(line != null) do whatever... //read the next lien line = be.readLine()
------------------ Bosun SCJP for the Java� 2 Platform
Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley