hello.....
i just had a problem with file management in c programming.my friend gave problem but i dont know how to see the output.is there any file which i have to create first and see the answer?please help me.thanks.:)

Recommended Answers

All 5 Replies

Member Avatar for iamthwee

What?! Explain yourself properly!

oh come on man.....didnt u understand?ok..let me explain.think i will give u a file program in c.assume any simple program for urself.tell me how it work?thanks for reply.

hello.....
i just had a problem with file management in c programming.my friend gave problem but i dont know how to see the output.is there any file which i have to create first and see the answer?please help me.thanks.:)

No you have to see the code and find out which all files it is reading and which all files it is modifying.

but in file management if i open the file as fopen and i have to give the filename and status as,
f1=fopen("sohan","w");


now can u tell where is the filename sohan is?

should we have to create the file before we write the program?

where it has to be saved?how can we see the output?

thanks for reply.

Member Avatar for iamthwee

It is saved in the same directory as you run the program.

Alternatively if you don't know where it is, supply the exact file path.

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.