0

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.:)

3
Contributors
5
Replies
6
Views
9 Years
Discussion Span
Last Post by iamthwee
0

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.

0

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.

0

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.

0

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.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.