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
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
C
print text file into string
print text file into string
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
kim6987
New Member
Join Date:
Sep 2007
Posts:
12
#1
print text file into string
Jun 17 '08, 08:30 AM
Can any one show me how to write the code in C when I want to read the content of a text file and write it into a string?
Thank you!
Nepomuk
Recognized Expert
Specialist
Join Date:
Aug 2007
Posts:
3111
#2
Jun 17 '08, 09:16 AM
Have you tried searching for something like
c read file
on Google yet? I must say, Google can be very friendly and helpfull when it comes to such questions.
Greetings,
Nepomuk
Comment
Post
Cancel
jorba101
New Member
Join Date:
Jun 2008
Posts:
86
#3
Jun 17 '08, 08:05 PM
Hint,
Look for: fopen, fclose, fscanf, fgetc, fgets.. and f-something functions whose prototype is in stdio.h
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment