Sometimes, when writing a program there could be a reason not to like writing into a file directly. In programming, one of the practices is to write data into a file because after a program runs finish all the data is lost, to prevent this, programme...