C# Text File

C# makes it extraordinarily easy to read and write text files. There is a static object called “File” (located in┬áSystem.IO) that does all the hard work for you. Look at how easy it is to read in a file, do some simple string processing on it, and then write it back out. // open a text file and read all […]

Read more

C# Switch

A switch statement in C# is a great way to switch between options. It is useful if you have a few or a lot of options. In many cases it is easier to understand that a bunch of “if-else” statements. The compiler will turn a switch statement into the equivalent of “if-else” statements, so there is no run-time penalty for […]

Read more

Hydroponic Lettuce

I’m always looking for 22″ to 24″ long containers that I can put under 4 foot long grow bulbs. After discovering bus boxes from the restaurant industry I think I’ve found the best possible solution. They are food grade plastic and nice and deep. They’re thick and sturdy and very available online. The only difficulty is coming up with a […]

Read more
1 52 53 54 55 56 58