Consider a text editor that saves a file whenever you click


Question: Consider a text editor that saves a file whenever you click a save button. Suppose that when you press the button, the editor simply

(1) animates the button "down" event (e.g., by coloring the button grey),

(2) uses the write() system call to write your text to your file, and then

(3) animates the button "up" event (e.g., by coloring the button white).

What bad thing could happen if a user edits a file, saves it, and then turns off her machine by flipping the power switch (rather than shutting the machine down cleanly)?

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Consider a text editor that saves a file whenever you click
Reference No:- TGS02271939

Expected delivery within 24 Hours