All,
I have a C program with embedded SQL which reads the files and loads them into database. Today i am using a system call to ls -lrt and taking the output into an array to get my oldest file. I am trying to avoid using system call. Is there anyway to retrieve the oldest file from the directory and get it processed.
thanks for your time
logic4fun
I have a C program with embedded SQL which reads the files and loads them into database. Today i am using a system call to ls -lrt and taking the output into an array to get my oldest file. I am trying to avoid using system call. Is there anyway to retrieve the oldest file from the directory and get it processed.
thanks for your time
logic4fun