The following code does not produce a file (I can't see the file anywhere). ... I think your expectations and reality don't match (but when do they ever ;)). Basically ...
stackoverflow.com