In programming contest we have to use file to read data in different format and sometimes we have to write the output in a file....