Explore BrainMass

Files and Streams

Information about computer terminals in a computer network is maintained in a file. The terminals are numbered 1 through 100, and information about the nth terminal is stored in the nth line of the file. This information consists of a terminal type (string), the building in which it is located (string), the transmission rate (integer), and access code (character), and the date of last service (month, day, year). Write a program to read terminal numbers from the keyboard and directly access the line in the file for each terminal by moving the read position directly to that line. The program should retrieve and display the information about that terminal.

Solution Preview

Dear student,

I have written the code in C. Although you have mentioned about 100 terminals, I have made provision for user input. ...

Solution Summary

Files and Streams are examined.