i have a problem with seek in StreamReader, my problem is
i want to read the contain of a text file, but the reading is done like this ( read first row, then 5th row, then 10th row, ... to nth row of data inside the file and finaly return the number of reading (n\5)). the code i am using is shown below. but the problem is the StreamReader pointer is not jumping 5 positions , it just read the next position even if i used "BaseStream->Seek".
so is there another way to read the contain of a file every 5 rows, by the way
i tried a different way by reading all the file and divide by 5 but this approach is time consuming since the file is about 119236 values ( the code below)
thank you Denis for your reply
i mentioned using the code you wrote , but for a big file it will take a long time , is there a way to read every 5 row not read all the file and divide by 5. If it is not seek is there any other function that change the pointer of the streamReader