Copy a text file

http://ideone.com/IDFBQw