I dont understand how this function works...here is my situation, I have a file with a list, for example:
Item 1
Item 2
Item 3
Item 4
Item 5
in a text file. Now, this file is over 4 megabytes, so there are lots of lines. i have built a program to get the byte position of lets say item 500 so its easier to access a line rather than just going through the entire list looking for an item. How do I use streamreader to go to a byte position in a file and read the entire line? I have attempted to do this in severa; ways, but it is always off a couple bytes.
Item 1
Item 2
Item 3
Item 4
Item 5
in a text file. Now, this file is over 4 megabytes, so there are lots of lines. i have built a program to get the byte position of lets say item 500 so its easier to access a line rather than just going through the entire list looking for an item. How do I use streamreader to go to a byte position in a file and read the entire line? I have attempted to do this in severa; ways, but it is always off a couple bytes.