this code that i have writen here does'nt want to collect my data from the file.I am still a beginner in java.If someone can give me some help?
import java.util.Scanner;
import java.io.File;
import java.io.FileNotFoundException;
public class importDataProcess {
/**
* @param args the command line arguments
*/
public static void main(
String[] args) throws FileNotFoundException {
String name;
int testValues;
Scanner diskScanner =
new Scanner(new File("C:\\testdata.text"));
name = diskScanner.nextLine();
testValues = diskScanner.nextInt();
}
}