I know how to use FileOutputStream
to write a stream of bytes into a txt
files, and I know also how to write them into separate lines (here I would like to call these lines rows).
I would like to know how to write characters into different columns? Say there is a loop in which we would like to write a number in each row's columns. Each column represents an iteration of an inner loop. The output should look like this:
1 3 4
2 3 5
1 2 3 5
2 5
1 2 3 5
How do I do that?