I have a txt file and readline is not working right for my file.
My lines in my code.
And this is my text in my file.Lines are like this, but my code doesnt understand lines like this.
X02233 52330 DISCHY 8 BLUZ
std STD 0 0 0 0 0 8698230653909 0.00
X02237 52337 VALONIA BLUZ STD STD 0 0 0 0 0 8698230653916 0.00
X02245 72458 HARMONY 9 BLUZ STD STD 0 0 0 0 0 8698230653923 0.00
UPDATE :
var text = File.ReadAllText(lblPath.Text);
var lines = text.Split('\n'); //Unix-based newline
var longestLine = lines.OrderByDescending(a => a.Length).First();
var shortestLine = lines.OrderBy(a => a.Length).First();
var orderByShort = lines.OrderBy(a => a.Length);
I get out of memory exception in this code.Above example is only a part of my file.My notepad file is 105 MB.

\trepresent tab spacing and so on.asdad2a[1]should really be at the end ofasdad2a[0], not a separate element. Are you sure there's not a'\n'betweenDISCHY 8 BLUZandstd STD? TIP: Open the input file in Visual Studio and enable Edit > Advanced > View White Space. TIP: Click the magnifying glass icon next to astringvalue in the debugger to display it in the Text Visualizer, with tabs and newlines rendered as whitespace.