Few things about arrays and fopen
Posted: Tue Jan 04, 2011 9:20 pm
First
how can I make an array[144] into this 12x12 string?
123456789012
123456789012
123456789012
123456789012
123456789012
123456789012
123456789012
123456789012
123456789012
123456789012
123456789012
123456789012
And how can I save this string to a read-able txt just like that?
I only have this
"something" has to be changed if the numbers above ..
Thanks in advance ..
how can I make an array[144] into this 12x12 string?
123456789012
123456789012
123456789012
123456789012
123456789012
123456789012
123456789012
123456789012
123456789012
123456789012
123456789012
123456789012
And how can I save this string to a read-able txt just like that?
I only have this
- Code: Select all
FILE *file;
file = fopen ("test.txt", "w");
fprintf (file, "something");
fclose (file);
"something" has to be changed if the numbers above ..
Thanks in advance ..