Mykas0
January 29th, 2006, 03:31 AM
when using "getline", how can I set the delimiters?
Is it getline (file_here, delimiter) ?
For example, for a single word, would it be getline (file.txt, " ") ?
stuporglue
January 29th, 2006, 03:44 AM
The C++ IO getline?
If that's the case, which is what I'm guessing, visit http://www.cppreference.com/cppio/getline.html . cppreference.com is my first stop for basic c++ syntax questions.
So, I think it'd be something like:
file.getline(dest_buffer,buffer_size,delimiter);
where the variables are of the appropriate types.
Mykas0
January 29th, 2006, 04:28 AM
That was exactly what I wanted to know. Thanks.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.