How to verify the path of an open file.
- From: max.trinitron@xxxxxxx
- Date: Thu, 26 Jul 2007 01:09:14 -0700
Under UNIX/Linux you open a file with
fopen("anyDirectory/MyFile" "r")
and when it succeeds you know that the filename (and path) of the file
opened is exactly what you requested (otherwise you get NULL).
Under Windows the search for a file is case insensitive. You may
just have opened the file "AnyDirectory/myFile".
In such a case I want to write an error message (This should lead to
better portability between UNIX/Linux and Windows).
Is there a simple way to verify that the right file (case sensitive
filename compare) has been opened.
May by I can tell windows that all my paths are case sensitive.
Max Trinitron
.
- Follow-Ups:
- Re: How to verify the path of an open file.
- From: David Tiktin
- Re: How to verify the path of an open file.
- Prev by Date: Re: Bignum looses precision too fast?
- Next by Date: Re: How important is software maintenance?
- Previous by thread: ram disk says incorrect function. am i using wrong headers?
- Next by thread: Re: How to verify the path of an open file.
- Index(es):
Relevant Pages
|