Sequential File Handling
Sequential File Handling
(a) Declare a record structure to store the data in the table above.
PSEUDOCODE
1. Open file average.csv
2. For index = 0 to 199
3. Average=results(index).shape+results(index).measure+results(index).time+ results(index).arithmetic
4. Send average to FILE
5. next
6. Close file
VISUAL BASIC
1. Filename = “Average.csv”
2. Fileopen(2, filename, fileopen.output)
3. For index = 0 to 199
a. Average=results(index).shape+results(index).measure+results(index).time+ results(index).arithmetic
b. Writeline(2, average)
4. next
5. Fileclose(2)