mike statham wrote:I have the following code but need to read from a file
You should be able to do it with the code you have, providing that your file data corresponds
exactly with what your Scanner reads are requesting. In theory you also don't need the
System.out.print... calls when you're reading from a file, but they don't do any specific harm.
Winston