How can I start a ReadLine from a particular Line position in a System.IO.StreamReader

Hello guys

I have done this in a while loop , I have a have a large text file of about 31 Gig and this the only way to break down the text file.
The problem here is that it is not all the time i would want to start the ReadLine from position 0 sometimes i would want to start from Position 1000. How do I modify the readline to start from a specific position.

this method is effective in breaking down large text files
File.ReadAllLines is Not sustainable because my text file is way too large 31 Gb
Read Csv is also not okay.

This method works fine but I want to pass in the position of the Line to indicate where the read line should start from.

Thanks in advance

BreakDownCsvToChunks.xaml (19.4 KB)

Hi,

I think it’s necessary to skip line by line from the beginning. The following sample use InvokeCode activity to improve performance.

Regards,

1 Like

Hello @Yoichi Thanks for coming to the rescue, Please share with me your workflow

Hi,

Here you are.

Sequence.xaml (6.2 KB)

Please note that the above is just a sample and omit closing stream etc.

Regards,

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.