Search:

Type: Posts; User: Hayfield

Search: Search took 0.09 seconds.

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

    ok so I modified the method of reading the file into this




    public static void readFile(String[][] words, String fileName)throws IOException
    {
    Scanner input = new...
  2. Re: Reading from a text file into a two dimensional array

    Ok now I get the idea
    so I have this piece of code that counts the number of rows




    public static int getFileSize(String fileName)throws IOException

    {
    Scanner input =...
  3. Re: Reading from a text file into a two dimensional array

    ---------------------------------------------------
    this goes into the first row
    the first character goes into the first column ... the second character goes into the second column .. until the...
  4. Re: Reading from a text file into a two dimensional array

    I want the characters in the text files to go into the 2D array ..
    for example, the first character in the first line goes into the first column and the first row of the array
  5. Re: Reading from a text file into a two dimensional array

    like at list1[0][0] goes "-"
    and like at list1[20][25] goes "*"
    and it goes on in this way
  6. Re: Reading from a text file into a two dimensional array

    I want to input the text file into an array of [26][51] dimensions
  7. Re: Reading from a text file into a two dimensional array

    The first text file name is "pattern1.txt"
    and this is its content


    ---------------------------------------------------
    ---------------------------------------------------...
  8. Reading from a text file into a two dimensional array

    Hello, this is my first post in this forum. I am a beginner in Java and now I am working on programming Comney's game of life ...
    So I started off by writing the initial patterns in text files and...
Results 1 to 8 of 8