I'm working on an app in C# where I have a textbox on a Windows form. I need to read data from the textbox line by line and write it to a binary file. Each line contains either a string or an integer. I want to use StreamReader to read from the textbox and BinaryWriter to write it to a binary file. The "write to binary file" part will be easy. The "read from textbox line by line" part is what I need help with. Anyone?