Read files simultaneously and merge the result in a file

This is a discussion on Read files simultaneously and merge the result in a file within the C Programming forums, part of the General Programming Boards category; Hello I do not much about C programming and I have 306 files, and what I need is to: - ...

  1. #1
    Registered User
    Join Date
    May 2004
    Posts
    1

    Question Read files simultaneously and merge the result in a file

    Hello
    I do not much about C programming and I have 306 files, and what I need is to:
    - get the file (text, .htu) name, the value in the 3rd line (number)
    - open the text file .soi associated to the other one and get a value in the forth column and
    - open a third file associated to the other two and check in the 4th column for the '1' and '0'. Every time that a 1 is read, you have to get the value in the same row, 6th column and if it's a '0', get the 0. So you'll get a string of numbers and 0's.

    Any help would be much appreciated.

  2. #2
    Registered User linuxdude's Avatar
    Join Date
    Mar 2003
    Location
    Louisiana
    Posts
    926
    Post some code where are you having trouble?

  3. #3
    template<typename T> threahdead's Avatar
    Join Date
    Sep 2002
    Posts
    214
    assignment?

  4. #4
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    do not much about C programming and I have 306 files, and what I need is to:
    Code:
    int main( void )
    {
        FILE *fps[306];
        ...
    }
    That'll get you started.

    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21