I am reading a file using FileStream. Sometimes my stream position is in a middle of a sentence and I need to move it to the end of the sentence (all sentences are separated by line break). What I am planning to do is finding the offset of the carriage return (\r) and then set the position to it using FileStream.Seek.
Example:
HELLO, HALLO HOLLA.
YES YES YES
My cursor is right after 'HALLO' and I want the offset of carriage return in front of the next sentence (YES YES YES)
Is there any function to get the offset of the next carriage return? I am a student and still learning. Appreciate all your feedback and comments :)