Click to See Complete Forum and Search --> : Reading from a file
IgorM
January 11th, 2006, 04:20 PM
I'm new to VC++ .net.
I'd like to load the whole content of a file (txt) to a textBox form. How can I do that.
For example:
File contains
"My name is Tom. I'm 18.
I've got a dog."
I'd like the textBox to display:
"My name is Tom. I'm 18.
I've got a dog."
Regards
kirants
January 11th, 2006, 04:24 PM
What language ?
C, C++, C# ?
MFC/no MFC ?
GCDEF
January 11th, 2006, 04:50 PM
This isn't the best place to come if you have no knowledge at all. Find yourself a good tutorial and work through it. Post back if you have specific questions.
cilu
January 11th, 2006, 04:57 PM
[ redirected thread ]
IgorM
January 11th, 2006, 04:57 PM
It's in Visual C++
cilu
January 11th, 2006, 04:59 PM
The question was wheter you are using WinForms (which I assume so since you used the words "texbox" and "form") and if you want to use .NET framework classes or MFC or "pure" C++.
IgorM
January 11th, 2006, 05:18 PM
I'd like to use .Net framework
bagavathikumar
January 12th, 2006, 12:25 AM
pls refer this Document. (http://functionx.com/cpp/articles/cfileprocessing.htm)
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.