Click here to Skip to main content
15,889,776 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
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, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900