FILE Writing Error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • CK

    #1

    FILE Writing Error

    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

  • Emmanuel Delahaye

    #2
    Re: FILE Writing Error

    CK wrote on 16/07/05 :[color=blue]
    > 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[/color]

    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


    Comment

    • Kenny McCormack

      #3
      Re: FILE Writing Error

      In article <mn.81967d57ca9 6a154.15512@YOU RBRAnoos.fr>,
      Emmanuel Delahaye <emdel@YOURBRAn oos.fr> wrote:[color=blue]
      >CK wrote on 16/07/05 :[color=green]
      >> 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[/color]
      >
      >Would you please rephrase this in plain correct English ?[/color]

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

      Comment

      • Lawrence Kirby

        #4
        Re: FILE Writing Error

        On Fri, 15 Jul 2005 21:36:49 -0700, CK wrote:
        [color=blue]
        > 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[/color]

        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


        Comment

        • Anonymous 7843

          #5
          Re: FILE Writing Error

          In article <1121488609.151 017.321300@g47g 2000cwa.googleg roups.com>,
          CK <chellskrishna@ gmail.com> wrote:[color=blue]
          >
          > 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[/color]

          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++

          Comment

          Working...