use \ slashes bud. / is for the internet. \ is for files. You want to actualy open the .lights, not the .mel It should read: string $pathL = "C:\\Documents and Settings\\YOUR-LOG-IN\\My Documents\\maya\\scripts\\GIJoe.lights";