Need to take input from a file as command line argument and put it in an array, but i keep getting .class expected on this line
temp[][] = infile.nextInt();
Here is the whole code so far for reference
import java.util.*;
class Temps
{
public static void main(String[] args)
{
Scanner infile = new Scanner(new file(args[0]));
string month = inFile.nextLine();
inFile.nextInt();
for (int row; row < temp.length; row++)
for (int col; col < temp[0].length; col++)
if (infile.hasnext())
temp[][] = infile.nextInt();
}//end of main
}//end of class