Computer Science Canada calling info from text files |
Author: | skier [ Fri Nov 12, 2004 3:56 pm ] | ||
Post subject: | calling info from text files | ||
does anyone no how to get arrays t save to a text file.i have got it to do single numbers but i cant get it to do arrays.
any help? |
Author: | Tony [ Fri Nov 12, 2004 4:05 pm ] | ||
Post subject: | |||
well just keep on writing to file and not close it...
|
Author: | skier [ Fri Nov 12, 2004 4:14 pm ] |
Post subject: | |
thats what i was doing before and it wasnt working but now it is. maybe i frogot to put in "upper". how do i call all the info for an array.i tyed just calling th variable but it doesnt work.how do i do this ? |
Author: | Mr. Glib [ Sun Nov 14, 2004 3:27 pm ] | ||
Post subject: | Re: calling info from text files | ||
skier wrote: does anyone no how to get arrays t save to a text file.i have got it to do single numbers but i cant get it to do arrays.
any help? With arrays, remember those pesky little index values. var x : array 1..2 of int x(1) :=10 x(2) :=3 open : stream, filename, put for y : 1..2 put : stream, x(y) end for |