TextReader inpf;
inpf = new StreamReader("file");
inl = inpf.ReadLine(); // null if none left
inpf.Close();
You can also create a FileStream (as this allows Seek) and then construct a StreamReader from the FileStream (FileStream doesn't have ReadLine).
NB that the string returned by ReadLine does not have a newline on the end.
Anti-nuisance lawsuit warning: The purpose of these notes is to remind me, Zoegond, of stuff or to help me work stuff out. They may contain mistakes.
Quick
- ($a, $b....) = unpack("A2A7...", $packed)
- push( array, list )