Successfully writing to a file!

All thanks to Mark at T2G :-D