954,499 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

how do i save a .txt file from my programe?

how do i use a .txt file in C
like read and save form and into it...
any help will be good
thenks :)

dv1r
Light Poster
38 posts since Jan 2008
Reputation Points: 9
Solved Threads: 0
 

Once you open the stream, it's basically the same as working with stdin and stdout. What problems are you having with your code?

Narue
Bad Cop
Administrator
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
 

im just using turboC and i have no idea what stdin and stdout are...
im not too good at programing... =\

dv1r
Light Poster
38 posts since Jan 2008
Reputation Points: 9
Solved Threads: 0
 

You'd best get a book on C and read it, because it sounds like you really want a tutorial rather than the kind of specific help one finds on forums such as this one. By the way, printf uses stdout and scanf uses stdin.

Narue
Bad Cop
Administrator
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
 
Majestics
Practically a Master Poster
621 posts since Jul 2007
Reputation Points: 199
Solved Threads: 49
 

WOW thanks alot man that really helped me :)
do you have something like that on how to read/write an microsoft access databace??

dv1r
Light Poster
38 posts since Jan 2008
Reputation Points: 9
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You