I am trying to input file contents into a two dimensional int array. The file consists of multiple rows and columns of chars. I have to apply an if/then to convert the chars to integers, but before I do that, I need to be able to read through the chars in one line, then the next...
I know how to loop through with hasNextLine, but that only gives me the line as a string and not each char.
The file looks like this:
------..
...-----
........
-------
How do I get the value of each char so I can apply the if/then to dump values into the integer array?
Should I take each row as a string and parse the chars that way? If so, how?
Any help would be greatly appreciated.