Thread
:
read line of text from file into array
View Single Post
•
•
Join Date: May 2008
Posts: 640
Reputation:
Solved Threads: 106
Murtan
Offline
Practically a Master Poster
Re: read line of text from file into array
0
#
10
Jan 16th, 2009
So line is a string and str is a C style string so you can use strtok on it.
Why not just use
strcpy(str, line.c_str())
?
Murtan
View Public Profile
Find all posts by Murtan