Click here to Skip to main content
14,383,811 members
Rate this:
Please Sign up or sign in to vote.
See more:
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?
Posted
Comments
[no name] 29-Aug-13 20:58pm
   
Okay so what "help" is it that you need? Are you unable to get the lines? http://msdn.microsoft.com/en-us/library/system.windows.forms.textboxbase.lines.aspx
dudefromthebronx 30-Aug-13 12:04pm
   
I need help reading the lines from the textbox and then writing them to a binary file

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100