You're already using filehandling and you have not yet learned how to use strings or char arrays?