Switch to fgets