Could anyone help me by posting a simple example in Visual Basic demonstrating how to store text from a text file to an array line-by-line so I could then further manipulate those strings which were stored in the array?
Sure!
using std::string;
std::vector<string> file_contents;
std::ifstream fin("filename.txt", std::ios::in);
string temp;
while (std::getline(fin, temp))
file_contents.push_back(temp);
First of all, std::string?!! Why?!
Second, he wanted Visual Basic code. :P
I don't speak CPP :-/
Thanks for trying ;)
QuoteFirst of all, std::string?!! Why?!
Second, he wanted Visual Basic code. :P
Bah! [link=http://www.parashift.com/c++-faq-lite/containers-and-templates.html#faq-34.1]Why not?[/link]
Ewww!
*notes that his first C++ instruction book taught pointers and arrays well before it ever touched the standard templates*