Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > FILE Writing Error

Reply
Thread Tools

FILE Writing Error

 
 
CK
Guest
Posts: n/a
 
      07-16-2005
Hi EveryBody!
if u read from one file and write to another file using fgetc,fputc
for reading and writing ,but i add some character at the end of
file,how can i retify thi
by
CK

 
Reply With Quote
 
 
 
 
Emmanuel Delahaye
Guest
Posts: n/a
 
      07-16-2005
CK wrote on 16/07/05 :
> if u read from one file and write to another file using fgetc,fputc
> for reading and writing ,but i add some character at the end of
> file,how can i retify thi


Would you please rephrase this in plain correct English ?

--
Emmanuel
The C-FAQ: http://www.eskimo.com/~scs/C-faq/faq.html
The C-library: http://www.dinkumware.com/refxc.html

..sig under repair


 
Reply With Quote
 
 
 
 
Kenny McCormack
Guest
Posts: n/a
 
      07-16-2005
In article <>,
Emmanuel Delahaye <> wrote:
>CK wrote on 16/07/05 :
>> if u read from one file and write to another file using fgetc,fputc
>> for reading and writing ,but i add some character at the end of
>> file,how can i retify thi

>
>Would you please rephrase this in plain correct English ?


Oh, no, please don't. It wouldn't be nearly as entertaining if it did.

 
Reply With Quote
 
Lawrence Kirby
Guest
Posts: n/a
 
      07-16-2005
On Fri, 15 Jul 2005 21:36:49 -0700, CK wrote:

> Hi EveryBody!
> if u read from one file and write to another file using fgetc,fputc
> for reading and writing ,but i add some character at the end of
> file,how can i retify thi
> by
> CK


Change the code to avoid adding the character you don't want. Without
seeing your code there is no way we can tell why it isn't behaving in the
way you want. One possibility however is that you have a bug along the
lines of what is described in section 12.2 of the FAQ.

Lawrence


 
Reply With Quote
 
Anonymous 7843
Guest
Posts: n/a
 
      07-18-2005
In article < .com>,
CK <> wrote:
>
> Hi EveryBody!
> if u read from one file and write to another file using fgetc,fputc
> for reading and writing ,but i add some character at the end of
> file,how can i retify thi
> by
> CK


Please post from the same account all the time so that
we can highlight your important articles and make sure
we don't miss them. Thanks!
--
7842++
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error 1304: Error writing to file about ( NetFx64 ) Tuna Windows 64bit 0 01-11-2008 06:36 PM
Any problems with writing the information into a file - Multi-users perform writing the same file at the same time ???? HNguyen ASP .Net 4 12-21-2004 01:53 PM
Simulation Error While writing to file Mohammed khader VHDL 3 11-30-2004 04:29 PM
My DVD Error Problems writing on dvd , Error: sense code (37303) , DVD Err, 226051 Bun Mui Computer Support 0 06-18-2004 11:29 AM
File Access error - writing to .txt file John Carnahan ASP .Net 2 07-18-2003 10:35 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57