Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

retrieving from files

Status
Not open for further replies.

d0s

Programmer
Apr 15, 2004
48
US
Hey ive been doin alot of reading and tried doin searchin online. I have acouple questions. First, is it possible to categorize a file for the text you send to it. Like from a textbox when u write to the file is it possible to set it to certain lines? im kinda wanting to do it this way that way i dont' have to create mutiple files for the options. I tried searching, but all i could find was reading lines and reading to end of file and the reading lines didn't show any reading certain lines so i was wondering if you could do that. Second, i can't quite figure out how to send text from a file to a textbox. I know it has something to do with reading the file, then using textbox.text to get it..im currently working on it so i'll probably figure it out soon. But the first question is what im really writin this for..Thanks
 
You need to use StreamWriter and FileStream and then you can write out whatever you want, whereever you want.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top