cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
find the position in a stream
find the position in a stream
Mar 2, 2010 at 9:06pm UTC
ABastos
(2)
How can i find the position of a especific char in a stream ?
For example, i need to open a txt file and read line by line, each line has some characteres and i need to know the position of a comma in the lines.
Thank you.
Mar 2, 2010 at 9:22pm UTC
Null
(957)
To find a character in string, use find():
http://www.cplusplus.com/reference/string/string/find/
Topic archived. No new replies allowed.