Read up on strings and files. You lack a general understanding how either of those two really work in C. It's complicated to put it all together, and to explain the misconceptions would require us...