I have been looking around but could not find what I need.
I am writing a simple code to save some strings into a .txt file.

I am using:

```
File archivo = new File(FileName);
fileOutputStream.write(toString().getBytes());
fileOutputStream.flush();

```

When I do this the .txt is succesfully created and save the info I need to save, BUT it save all in 1 single huge line.
How I can save it in diffent lines?

example when I open the txt:

```
This is line 1This is line 2This is line 3This is line 4

```

I have add '\n' at the end of each string but it doesn't work.

toString() return a String: "This is line 1";
OS: Windows 7