Thread: Combining contents of two files

  1. #1
    Registered User
    Join Date
    Mar 2013
    Posts
    4

    Combining contents of two files

    I have dabbled in programming with C, but I am not proficient enough to write a program dealing with files. I have to take an extremely long list of numbers that need to be placed into another file within a line of code for validating purposes. Can anybody assist me with taking the numbers from one file and placing them into another file with a string code around them?

    Thanks in advance.

  2. #2
    SAMARAS std10093's Avatar
    Join Date
    Jan 2011
    Location
    Nice, France
    Posts
    2,694
    You can take a look at the copy files example and be inspired a bit
    Code - functions and small libraries I use


    It’s 2014 and I still use printf() for debugging.


    "Programs must be written for people to read, and only incidentally for machines to execute. " —Harold Abelson

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Combining files together
    By binks in forum C Programming
    Replies: 41
    Last Post: 04-29-2012, 04:16 PM
  2. GUIs and combining files
    By sharrakor in forum C Programming
    Replies: 2
    Last Post: 03-22-2009, 07:00 AM
  3. Combining files
    By TheDan in forum C++ Programming
    Replies: 5
    Last Post: 04-07-2006, 07:18 AM
  4. Combining multiple wav files into one
    By eam in forum Tech Board
    Replies: 3
    Last Post: 01-17-2005, 11:08 AM
  5. combining file contents with command line
    By pxleyes in forum C Programming
    Replies: 4
    Last Post: 04-12-2004, 10:27 PM