I have a situation where I need to use backslashes as part of the string: $errorCode = $TK->OpenOutputFile("D:\public\k1\compiledCIO\$filename"); Obviously in the above example the backslash terminates the following character which causes a problem. I have tried several different arrangements and each time something occurs that causes problems with the string. Any suggestions?? Thanks, Ron