String[] quarters = new String[100] ;
quarters[] = information(fileCheck) ;
public static string information(String a)
{
Scanner inFile = new Scanner (new File(a)) ; // opens connection with file
while (inFile.hasNext()) // loops while more lines in file
{
String line = inFile.nextLine() ; // brings in next line to be broken up
String[] tokens = line.split(", ") ; //stores lines into array tokens
}
inFile.close() ; // close connection to file
return tokens[] ;
} // end information
问问题
33 次