in reply to Re: modifying a text file on Win32
in thread modifying a text file on Win32

Thanks for the suggestions. I'm still getting the same error with your code as I mentioned in my post below - can't find c:\blah.txt, no such file or directory. But the file is definitely there...Maybe it's a Win32 thing??

Thanks,

Glenn

Replies are listed 'Best First'.
Re: Re: Re: modifying a text file on Win32
by chipmunk (Parson) on Aug 13, 2001 at 07:46 UTC
    Just checking, the file really is in the root directory of the C drive?

    You might try specifying the file simply as 'blah.txt' (without any path), chdir-ing to the directory containing 'blah.txt', and running your script from there.

      Yes, the file is really at the root of C: I also tried moving it to the c:\perl\bin directory, as that's where I'm executing the script from (via "perl c:\console.pl"). Didn't seem to make a difference...