Results 1 to 2 of 2

Thread: [02/03] Looped reading of a textfile

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2006
    Posts
    29

    Post [02/03] Looped reading of a textfile

    I am using filestream and streamreader to read a file and display the results in a textbox. The content of the textfile is changed by an other application. Is it possible to monitor these content changes and repeat the reading process?

    Thanks

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [02/03] Looped reading of a textfile

    Reading the file is just a matter of executing the same code again. You monitor changes to the file system with a FileSystemWatcher component.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width