Find the answer to your Linux question:
Results 1 to 6 of 6
Hi firends, I am newest candidate in linux world . I have a large file having data like Amake NN 0 Asa VB 0 ....... ....... ...... I haveto read ...
  1. #1
    Just Joined!
    Join Date
    Feb 2009
    Posts
    4

    Question A C program for File retrieving & modifying

    Hi firends,
    I am newest candidate in linux world . I have a large file having data like

    Amake NN 0
    Asa VB 0
    ....... ....... ......

    I haveto read the file which is in another directory & I have to create & save more columns in each row corresponding to the data given in each row.

    how can it be done using C code?

    Thanks in advance.

  2. #2
    Just Joined!
    Join Date
    Feb 2009
    Posts
    4
    Pls Anybody reply to my post..

  3. #3
    Just Joined!
    Join Date
    Jan 2009
    Location
    Bangalore
    Posts
    15

    A C program for File retrieving & modifying

    Hi,

    If you wan't to do with c library files like using fopen, fgets, fwread,fclose and so on..
    If you wan't to do with system call use open,close, read,write and so on...

  4. #4
    Just Joined!
    Join Date
    Feb 2009
    Posts
    4

    Unhappy

    Quote Originally Posted by umeshkmahindrakar View Post
    Hi,

    If you wan't to do with c library files like using fopen, fgets, fwread,fclose and so on..
    If you wan't to do with system call use open,close, read,write and so on...
    I want to do with c library files , but while using fputs(filename,"fomatted string",..)...a new line is inserted automatically between two strings ,though I don't insert it...

  5. #5
    Just Joined!
    Join Date
    Jan 2009
    Location
    Bangalore
    Posts
    15

    A C program for File retrieving & modifying

    hi,

    in while use putc and write the string into the file... if the character contains newline skip the character...

  6. #6
    Just Joined!
    Join Date
    Feb 2009
    Posts
    4

    Smile

    Quote Originally Posted by umeshkmahindrakar View Post
    hi,

    in while use putc and write the string into the file... if the character contains newline skip the character...
    thank you...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...