Originally Posted by
Salem
Code:
strftime(info_filename, sizeof(info_filename), "./test_files/i_%d%m%y_%H%M%S.txt", t);
Wish it was that simple really, I've tried that before but for some reason it doesn't work. Here's what I tried and what the result is:
Code:
strftime(info_filename, sizeof(info_filename), "./test_files/di_%d%m%y_%H%M%S.txt", t);
strftime(data_filename, sizeof(data_filename), "d_%d%m%y_%H%M%S.dat", t);
Result: i_090306_092822.td_090306_092822.dat (inside the test_files dir) and d_090306_092822.dat in the root.
And if I try for both:
Code:
strftime(info_filename, sizeof(info_filename), "./test_files/di_%d%m%y_%H%M%S.txt", t);
strftime(data_filename, sizeof(data_filename), "./test_files/d_%d%m%y_%H%M%S.dat", t);
The program hangs....
Any ideas?