Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Read line from .txt, store in char*

Name: Anonymous 2010-05-02 13:51

This! Is! C++!
Is this impossible?
I'm only able to store stuff in strings. But strings cannot be converted to char*, only const char*. And const char* can't be used in place of char*.

Can't I just do something like getline(char* text,256,' ')? Or will have I have to copy data from a string into a char*?

Name: Anonymous 2010-05-02 16:03

>>11
I was assuming everyone would be "TROLOLO NOOB WANTS TO PROG!"
So I didn't bother checking back often, I just tried and failed for a good while, eventually I came to the solution you provided.
So a bit late, but still, if you're reading, thanks anyway!

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List