Saving a list of points into a text file

Posted by dylanisawesome1 on Game Development See other posts from Game Development or by dylanisawesome1
Published on 2012-11-21T00:53:23Z Indexed on 2012/11/21 5:22 UTC
Read the original article Hit count: 299

I recently posted a question about this, but was not really sure where to go. I've gotten some progress, and have generated some simple noise here:

http://pastie.org/5408655

That works well enough for me, but I would really like to be able to save the points into an ascii text file. currently it's formatted so that something like this:

http://pastie.org/5409311

would create a square. I need to save in this format with the points(and lines connecting them) generated in the method above.

Essentially, I need to write the array of points created in the first example to a text file formatted like the second example.

© Game Development or respective owner

Related posts about java

Related posts about tiles