I have a text file of size 4.5GB, which was created by one of the experimental applications. On my system of 8GB RAM, this file cannot be opened (tried with sublime text). I just want to read the content of this file from the end, say 45 characters from the end, without loading the entire file in memory. How to do this ? The inbuilt methods like,
StreamReader.ReadBlock(char[] buffer,int index,int count)
has type int for index, but the index for my case is out of the range for int value. If only there was an overload with long. How to overcome this ? Thanks.