My program writes, and reads a flatfile DB. Writing new lines is easy enough:
fprintf(fd, "%s/%s %02d-%02d-%04d %02d:%02d:%02d\n", var, var, ..."
Reading the lines back is the problem:
fscanf(fd, "%s/%s %02d-%02d-%04d %02d:%02d:%02d\n", &var, &var, ..."
I seldom use scanf, but in this case figured it would be a one-line no-brainer.... Wrong! ;-{)
Any experienced scanf'ers see the problem?
fprintf(fd, "%s/%s %02d-%02d-%04d %02d:%02d:%02d\n", var, var, ..."
Reading the lines back is the problem:
fscanf(fd, "%s/%s %02d-%02d-%04d %02d:%02d:%02d\n", &var, &var, ..."
I seldom use scanf, but in this case figured it would be a one-line no-brainer.... Wrong! ;-{)
Any experienced scanf'ers see the problem?