Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java

File file = new File("validFile.txt");
Scanner fileReader = null;
try {
    fileReader = new Scanner(file);
} catch(FileNotFoundException e) {
    System.exit(1);
}
while(fileReader.hasNext()) {
    //code here
}
Source by uncc.instructure.com #
 
PREVIOUS NEXT
Tagged: #java
ADD COMMENT
Topic
Name
9+3 =