Open a file, write one line, close it. Practice prints OK to show the steps succeeded.
Write mode creates a file or wipes an old one, then you put text in it. The visualizer shows Hello inside notes.txt. The program also prints OK on the terminal to say the steps succeeded.
create
write
save
stdout
Each step highlights the matching C line. Program output appears only when a line that prints actually runs.
Five questions. Pick one answer each, then Check answers. The correct choice turns green.
1. Stdout in this lesson is:
printf OK.
2. The file contents after fprintf are:
Visualizer file card.
3. "w" on an existing file:
Wipe.
4. Another kind "a" would:
Append.
5. Practice may only printf OK because:
Sandbox vs diagram.