Quote:

$Write = WriteFile('C:\xfer2.txt',$file)



All that does is duplicates the original file, doesn't make any changes.