Friday, January 20, 2006

This is getting silly...

This is my fourth positive post in a row - I must be sick.

You have got to check out the System.IO.File object.

It features AppendAllText(string path, string contents) that creates a file (if it does not already exist) and adds the text to the end. This was just annoying code that had to be written once every project and now we are free of those shackles.

Also check out the Open*() functions, Write*() and Read*() functions.

Cool.

I will find something to have a whinge about soon I am sure...

No comments: