Did you look at what I suggested before?
If the line has been read into a String, all the characters from the line are in the String. There are no more.
Type: Posts; User: Norm
Did you look at what I suggested before?
If the line has been read into a String, all the characters from the line are in the String. There are no more.
If the row/line is read into a String variable, the String class has methods that will tell you how many characters are in the String.
Ok, we've got the definitions. Now explain what your problem is.
Read a row, take the characters one at a time and put them into the array. read next row and do it again. Continue until done. ...
What goes in the rest of the first row of the array?
What goes in the second row of the array?
Which dimension is the row and which the column? [r][c] or [c][r]
That is code, I'm looking for a description in English of where the characters in the file are to go.
The file has lines and characters in each line. The array has rows and columns. Explain in those...
Can you describe what goes into each element in the array? If the two dimensions are considered as rows and columns, describe the relationship between each line in the file and each row and column of...
Given that file's contents as input, what do you want in the array(s)?
What does your current code do? What are your problems?
Where are the two dimensions?
Please explain what and where the two dimensions of a text file are.
Please Edit your post and wrap your code with
<YOUR CODE HERE> to get highlighting