What version of Java ur using?
It work just well on my computer, maybe some incompatibility problem with the class?
import java.util.*;
import java.io.*;
public class scanCheck
{
public static void main(String[] args)throws IOException
{
File myInFile = new File("scanCheck.txt");
java.util.Scanner myinput = new java.util.Scanner(myInFile);
while(myinput.hasNext())
{
String first = myinput.next();
System.out.println(first);
}
}
}