reading from a specific point in text file


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: reading from a specific point in text file

  1. #1
    Join Date
    Aug 2006
    Location
    Albuquerque
    Posts
    32

    Unhappy reading from a specific point in text file

    hi everyone,
    i am trying to read a text file from one point in the file to another. i don't want to read the entire file because i am getting memory exception errors. any help with this is appreciated. i am using vb.net 05. ThankS!

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    You can use the Seek method of the BaseStream class to position the file pointer for the next read. Use the ReadBlock or ReadLine methods to read a "chunk" of the file.
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  3. #3
    Join Date
    Aug 2006
    Location
    Albuquerque
    Posts
    32
    thanks phil i will give it a try.

Similar Threads

  1. question about reading text file
    By aurore in forum Java
    Replies: 6
    Last Post: 08-14-2005, 11:07 AM
  2. Help saving data to text file
    By Asbestos in forum Java
    Replies: 1
    Last Post: 06-06-2005, 10:30 AM
  3. Replies: 1
    Last Post: 03-22-2005, 11:18 PM
  4. Replies: 0
    Last Post: 10-01-2001, 12:19 PM
  5. Replies: 1
    Last Post: 03-06-2001, 08:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center