Quote:
Originally Posted by technalogist
Hello there i am new to c++ just starting too learn it and i want to make one little program that will read text file and grab a string from that text file and use it as variable. Here is example
|
Meta answer. Don't use C++ for a task like this. Use ruby or perl or python ( I recommend ruby). You can do it in one line.
What you need to do is read about iostreams, in particular ifstream and std::string.
That should get you started.