Sometimes it is necessary to process a sequential text file multiple times from the beginning during a program's execution. After the file is processed the first time, the file pointer is at the end of the file. How can you reread the file at this point?

What will be an ideal response?

After the file is processed the first time, the file pointer is at the end of the file and no more records can be read. To reread the file, you could close it and reopen it, but that requires unnecessary overhead. Instead, you can just reposition the file pointer using the Seek() method and the SeekOrigin enumeration.

Computer Science & Information Technology

You might also like to view...

Which of the following describes the process laser printers use to secure toner to paper?

A. Bonding B. Transferring C. Duplexing D. Fusing

Computer Science & Information Technology

An HTML menu control can be added to a JSP using the __________ element.

a) select b) menu c) input d) None of the above.

Computer Science & Information Technology