Change this: $pathName="$dir\\$fileName"; to this: $pathName="$dir/$fileName";
In reply to Re: read and write file in directory by BrowserUk in thread read and write file in directory by codewalker