title: Which file operation is faster, reading or writing
body: <p>If we take a file of a particular size, which operation will perform faster? Reading the entire contents or writing the contents to the file. Is there any dependency for the performance to the mode of opening a file.</p>