I don't see a problem with doing that. But you'd want to fgets a line in from your file, then sscanf over that line.