943,926 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 4689
  • C RSS
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Oct 2nd, 2006
0

Re: Reading and Writing file

Click to Expand / Collapse  Quote originally posted by andor ...
The only diffrence is the while loop and the declaration of spaceOcured. There is no sense that mod2 is not created. Create a new dir and copy the c file and the modt.txt. Try again. It should create the file modt2.txt. Do you heve this error message error:unable to open the filed? If U still have problem comment the while loop and leave only the fopen functions and see the result.

none ....no error messgae displayed....when i run the exe... window screen is black then quits...

okie i'll try without the while loop
Reputation Points: 16
Solved Threads: 0
Light Poster
vbcielle is offline Offline
26 posts
since Sep 2006
Oct 2nd, 2006
0

Re: Reading and Writing file

If theres no error mesages than the prog created the file. Put getchar() at the end of the program just to be shore that U did not missed the err message.
Reputation Points: 251
Solved Threads: 29
Posting Whiz in Training
andor is offline Offline
274 posts
since Jun 2005
Oct 2nd, 2006
0

Re: Reading and Writing file

Click to Expand / Collapse  Quote originally posted by andor ...
If theres no error mesages than the prog created the file. Put getchar() at the end of the program just to be shore that U did not missed the err message.
it works!!! i havent saved my code thtas why it didnt created new fle... i did exactly the code you gave me thanks!!!:cheesy:
Reputation Points: 16
Solved Threads: 0
Light Poster
vbcielle is offline Offline
26 posts
since Sep 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: Binary Search of an array of three strings
Next Thread in C Forum Timeline: passing strings





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC