menu prev next

FILES OF NUMBERS
Files may also consist of integers or reals. The procedures read and write can be used to transfer one value at a time.

The procedures readln and writeln cannot be used with file types other than text.


PROGRAM TWENTY-THREE
Write a program which adds up a list of numbers from a file. Create a sample file to test your program.

Click here for answer


Copyright B Brown/P Henry/CIT, 1988-1997. All rights reserved.
menu prev next

1