This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static string ReadEndTokens(string path, Int64 numberOfTokens, Encoding encoding, string tokenSeparator) { | |
int sizeOfChar = encoding.GetByteCount("\n"); | |
byte[] buffer = encoding.GetBytes(tokenSeparator); | |
using (FileStream fs = new FileStream(path, FileMode.Open)) { | |
Int64 tokenCount = 0; | |
Int64 endPosition = fs.Length / sizeOfChar; |