implement fgets with a struct
pass read_lines a pointer to a struct