Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
C
Relating Strings & FileStream in C++
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
manwanirg
New Member
Join Date:
Feb 2007
Posts:
3
#1
Relating Strings & FileStream in C++
Feb 1 '07, 02:20 PM
can the file contents be directly read into a C++ string object pointer instead of character pointer?
horace1
Recognized Expert
Top Contributor
Join Date:
Nov 2006
Posts:
1510
#2
Feb 1 '07, 02:30 PM
Originally posted by
manwanirg
can the file contents be directly read into a C++ string object pointer instead of character pointer?
you can use the >> operator (read up to next whitespace) or getline() function see
http://www.msoe.edu/eecs/ce/courseinfo/stl/string.htm
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment