September 9th, 2003, 12:29 PM
File Handling in C/C++
I'm trying to write a file update program. Given the paths,I'm able to find the timestamps of two files and update them with the latest version.
Right now,I have copies of a set of files in 2 systems. Instead of including the paths in the program, I'd like to list all the paths in 2 path files...one for each system.
The file in the first entry in pathfile1 will have the copy's path in the first entry of pathfile2....and so on.
I would like to know how to detect the end of the line so that I can read each path from the files. I am not an experienced programmer..if it looks silly,im sorry.