If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

write a matrix to file

Hi volks!

I need a little help.
I have a matrix which has 25 rows and 4 columns (it's defined "MiaSquadra[25][4]").
What I wanna do is to transfer the datas from this matrix to an empty exisiting file called "juventus.txt".
But the writing must be personalized, in fact I would like to write 25 rows (corresponding to the rows of the matrix) and each rows should be composed by the datas from the 4 columns with a symbol "%" as delimitator.

I have read the documentation about StringTokenizer and all its costructors to split lines in tokens... but I didn't solve my problem.
Maybe I didn't understand your suggestion but I couldn't apply StringTokenizer class to my problem because I have a matrix and I want to write on a file, that means I have to do an output stream.
The documentation about StringTokenizer class was relating examples of an input stream when you read from file and want to split lines in tokens....
Sorry for my lack of knowledge, probably I didn't catch your advice... can you explain me what I have to do exactly?
thanks again!
Mirjam