Coming soon - Get a detailed view of why an account is flagged as spam!
view details
1
How to incorporate a separate .txt file?
Post Flair (click to view more posts with a particular flair)
Post Body

I'm new to C and am trying to figure stuff out with the internet, and I'm stuck.

I'm trying to take "hello world" a step further. Instead out typing the text I want displayed directly into the program, I want to display the text of a .txt file (in the same directory as the program). So the result is essentially the same by just producing text, but I want the text to come from another file rather than inside the program.

How can I do this?

Author
Account Strength
100%
Account Age
11 years
Verified Email
Yes
Verified Flair
No
Total Karma
10,192
Link Karma
4,616
Comment Karma
5,448
Profile updated: 1 week ago
Posts updated: 9 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
7 years ago