Hi, i'm a student and i needed help in storing all my information from C to a text file. Could anyone help me out.
Thank you
Jollyyy100
0
Junior Poster in Training
Recommended Answers
Jump to PostThis is the C forum. Do you believe that we don't deal with C problems? ;)
One look around the place should have enlightened you on that point. Post your code, and describe what the problem is - tell us what it is that has you stumped.
Jump to Post@OP
>>"is it really getting saved in a text file and how can i view it?"
Open the file :)
Since you have not specified the path explicitly, it generally gets created in the same directory as the source file or sometimes the executable.Just open it …
Jump to Postsir, what do you mean by specifying the path, could you give me an example
and i checked the folder it does not have my work saved in it...
thank youSpecifying the path means telling the compiler where you want your File on Disk...
like:
ofp = fopen("D:\\xyz\\myprogram.txt", …
All 9 Replies
Adak
419
Nearly a Posting Virtuoso
Jollyyy100
0
Junior Poster in Training
myk45
48
Posting Whiz
Jollyyy100
0
Junior Poster in Training
vinitmittal2008
37
Junior Poster
Jollyyy100
0
Junior Poster in Training
Jollyyy100
0
Junior Poster in Training
vinitmittal2008
37
Junior Poster
Adak
419
Nearly a Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.