1 / 14

Ch 10 Sequential Access Files

Ch 10 Sequential Access Files. Sequential Access Files. Reading a file Writing to a file Input files Output files Sequential access files. Creating a Stream for Output. Opening a File for Output. Writing Data to a File. Creating a Stream for Input. ‘declare a StreamReader variable

onslow
Download Presentation

Ch 10 Sequential Access Files

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Ch 10 Sequential Access Files

  2. Sequential Access Files • Reading a file • Writing to a file • Input files • Output files • Sequential access files

  3. Creating a Stream for Output

  4. Opening a File for Output

  5. Writing Data to a File

  6. Creating a Stream for Input ‘declare a StreamReadervariable Dim inFile As IO.StreamReader

  7. Opening a File for Input

  8. Making Sure the Input File Does Exist

  9. Sample Code

  10. Reading Data From a File

  11. AnExample Contestant names appear in the Contestants box

  12. Data in the File Names contained in the contestants.txt file

  13. An Example (Cont.)

  14. An Example (Cont.)

More Related