string class to array

I am reading a single line of text from a file and want to read it as a string class then fill an array with the string. Is this possible. I want to use the c++ string class to avoid the null terminator.
Yes, this is possible.
You can use something like str.size(), and str[x] to go through the string, if you name your string str.
http://www.cplusplus.com/reference/string/string/size/

Hope this helps!
Last edited on
of course You can read.
getline to use it.
Topic archived. No new replies allowed.