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.
You might also like to view...
The guarantees offered by conventional servers may be violated by:
i) physical damage to the host; ii) Errors or inconsistencies by system adminstrators or their managers; iii)successful attacks on the security of the system software; iv)hardware or software errors. Give two examples of possible incidents for each type of violation. Which of them could be described as a breach of trust or a criminal act? Would they be breaches of trust if they occurred on a personal computer that was contributing some resources to a peer-to-peer service? Why is this relevant for peer-to-peer systems?
When you flip an image, it creates a reverse image
Indicate whether the statement is true or false
To determine the number of months to repay a loan, you must multiply the number of years by:
A) twelve. B) four. C) two. D) six.
Business ________ is the ability to improve business decision making with databases and other fact-based support systems.
Fill in the blank(s) with the appropriate word(s).