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 )

Tuesday, August 3, 2010

.NET text file write

Quick text file open and write:

TextWriter outf;
outf = new StreamWriter("file");
outf.WriteLine("Hello");
outf.Close();

It's possible to have the StreamWriter creation in one branch, and

outf = Console.Out;

in another, so program can be switched between stdout and file write.

Followers

Blog Archive