c# Read text file - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Skype & Technology (/forumdisplay.php?fid=9) +---- Forum: Tech Talk (/forumdisplay.php?fid=17) +----- Thread: c# Read text file (/showthread.php?tid=92495) c# Read text file by djdannyp on 10-07-2009 at 02:34 PM
Okay, here's the situation: RE: c# Read text file by Mnjul on 10-07-2009 at 04:59 PM You could use File.ReadAllLines to read the contents of the file to an array of string, each element a line, and access the last char of the second-to-last line using lines[lines.Length-2][lines[lines.Length-2].Length-1] (a bit messy, hope you figure it out ) RE: c# Read text file by Ezra on 10-07-2009 at 09:35 PM
What he said but in code c# code: RE: c# Read text file by djdannyp on 10-08-2009 at 12:37 AM
Thanks, yeah, I'd just about managed to put it into code and get it working |