Files are now written on a temporary folder prior to writing to actual
folder.

FilePacketHeader.writeFile is implemented.