oorosco
New Member
- Reaction score
- 23
Hi i need a way to "look" at files/folders, not actually change them but basically i need a way to read through them for a java project.
try {
fileInput = new Scanner(new File("somecoolfile.txt"));
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
while(fileInput.hasNext())
{
int foo = fileInput.nextInt();
System.out.println(foo);
}