1. Can't open on NT
- Posted by codehead78 at YAHOO.COM
Feb 22, 2001
I wrote a search program to run on an NT but I can't
open a file for reading, strangly I can open for
writing.
I can't even open the file I create (in the program)
I've tried ex.exe and exw.exe, nither work.
anybody have this problem?
thanks
-Humberto
2. Re: Can't open on NT
- Posted by Graeme <graemeburke at CROSSWINDS.NET>
Feb 22, 2001
-
Last edited Feb 23, 2001
At 06:51 22/02/01 -0800, you wrote:
>I wrote a search program to run on an NT but I can't
>open a file for reading, strangly I can open for
>writing.
>
>I can't even open the file I create (in the program)
>
>I've tried ex.exe and exw.exe, nither work.
>
>anybody have this problem?
>
>thanks
>-Humberto
Seems strange. NT has lots of security and
permission stuff, but it dosn't sound like that,
or you wouldn't get write access either.
The main diffrence between read and write access
is that, for reading the path _must_ be correct
or the system won't find the file. With write access
if you get the path wrong, the system will create
the file for you anyway, so you won't have a problem.
Sounds basic, but double check that you are actually
looking in the right spot... just a thought.
Graeme.
3. Re: Can't open on NT
- Posted by Jason <mirwalds at swbell.net>
Feb 22, 2001
-
Last edited Feb 23, 2001
I had the same problem when I wrote a program to use at work to search a
parts list (they run NT). I had to create the parts list in a *.txt file
formatted for my program. Unfortunatly, it wouldn't open it up until I took
it home and chopped it into about 5 pieces. Then it could open the smaller
files, so I made it to search them one-at-a-time.
Jason
4. Re: Can't open on NT
- Posted by codehead78 at YAHOO.COM
Feb 22, 2001
-
Last edited Feb 23, 2001
--- Graeme <graemeburke at CROSSWINDS.NET> wrote:
> Sounds basic, but double check that you are actually
> looking in the right spot... just a thought.
>
> Graeme.
That was it. walk_dir was making a mess of the path.
Thanks for the help.
-Humberto
5. Re: Can't open on NT
Hi,
didn't you forget do use double backslash ? eg. "C:\\folder\\file.txt"
Martin
----- Original Message -----
From: <codehead78 at YAHOO.COM>
To: EUforum <EUforum at topica.com>
Sent: Friday, February 23, 2001 3:51 AM
Subject: Can't open on NT
> I wrote a search program to run on an NT but I can't
> open a file for reading, strangly I can open for
> writing.
>
> I can't even open the file I create (in the program)
>
> I've tried ex.exe and exw.exe, nither work.
>
> anybody have this problem?
>
> thanks
> -Humberto
>
>
>