Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Re: Reading from a text file into a two dimensional array

    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.
  2. Re: Reading from a text file into a two dimensional array

    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.
  3. Re: Reading from a text file into a two dimensional array

    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. ...
  4. Re: Reading from a text file into a two dimensional array

    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]
  5. Re: Reading from a text file into a two dimensional array

    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...
  6. Re: Reading from a text file into a two dimensional array

    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...
  7. Re: Reading from a text file into a two dimensional array

    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?
  8. Re: Reading from a text file into a two dimensional array

    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
Results 1 to 8 of 8