Bookmark Topic Watch Topic
  • New Topic

Reading file and making an Array  RSS feed

 
Alex Munoz
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Report post to moderator
I've gotten very stuck on creating a program that will solve mazes. The user inputs the name of the file and it produces a maze of length (6,10), or (10,15) so I think I have to use an arraylist. How do I go about converting the text to an array?
Here is what I have written solving the maze is actually completed in another class:



Here is an example maze:
6 10
 
Suresh Sajja
Ranch Hand
Posts: 34
Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
Looks like a duplicate post, but with more details about the context of question.

http://www.coderanch.com/t/598716/java/java/File-input
 
Suresh Sajja
Ranch Hand
Posts: 34
Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
Alex Munoz,

From this post and your previous topic, i understand that you are looking for help on
1. reading a file.
2. Storing the maze in an array.

To get you started, please go through the tutorial on I/O streams.
 
Campbell Ritchie
Marshal
Posts: 55793
164
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please continue the discussion in the other thread quoted.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!