Jump to content

Loading from a file Help

C.G.F.Sabre

Giving us a 700 line file without any information isn't very helpful and most people will ignore your question. Give specifics.

 

After a look through, the only thing I could see that involved files is this small piece of code.

List<String> levels = new ArrayList<>();try {    levels = Files.readAllLines(Paths.get("levels.txt"),Charset.defaultCharset());}  catch(IOException e ) {    e.printStackTrace();}

This code works so if it's not loading your file, then either change the path so that it correctly points to your file, or move the file so that it's in the right location.

 

Without specifics, I'm just guessing here. If the problem is something else then provide the specifics.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×