Hi,
I'm trying to check the existance of a file in Windows 2000 by opneing
am fstream and seeing if it is open.
However, it seems that the executable doesn't care about case.
ie, if I am checking on myfile.txt and MyFile.txt is in there, it will
return true. However, other programs do care about the case (myfile
and MyFile are different), which is why I need to do what I am doing.
Am I right on this or is there something I am missing? I'm not a code
expert - this is a tweak on an existing program.
Thanks! 9 1480 or*******@aol.com wrote: I'm trying to check the existance of a file in Windows 2000 by opneing am fstream and seeing if it is open.
However, it seems that the executable doesn't care about case.
ie, if I am checking on myfile.txt and MyFile.txt is in there, it will return true. However, other programs do care about the case (myfile and MyFile are different), which is why I need to do what I am doing.
Am I right on this or is there something I am missing?
Are you right on WHAT? Windows 2000 file system is case-insensitive.
I'm not a code expert - this is a tweak on an existing program.
I am not sure, I'd have to see some code, but you probably are mixing up
concepts: case sensitivity of the language and case sensitivity of the
file system (operating system). The latter is off-topic here. You might
want to ask in comp.os.ms-windows.programmer.win32 about that.
V or*******@aol.com wrote: Hi,
I'm trying to check the existance of a file in Windows 2000 by opneing am fstream and seeing if it is open.
However, it seems that the executable doesn't care about case.
ie, if I am checking on myfile.txt and MyFile.txt is in there, it will return true. However, other programs do care about the case (myfile and MyFile are different)
Well, those programs are doing it wrong. Windows filesystems are
case-insensitive. You can't even *have* myfile.txt and MyFile.TXT in
the same directory; Windows won't let you. The programs you've
encountered that are case-sensitive are most likely Unix ports that did
not take into account this Unix/Windows difference.
--
Mike Smith
Mike Smith wrote: or*******@aol.com wrote: Hi,
I'm trying to check the existance of a file in Windows 2000 by opneing am fstream and seeing if it is open.
However, it seems that the executable doesn't care about case.
ie, if I am checking on myfile.txt and MyFile.txt is in there, it will return true. However, other programs do care about the case (myfile and MyFile are different)
Well, those programs are doing it wrong. Windows filesystems are case-insensitive. You can't even *have* myfile.txt and MyFile.TXT in the same directory; Windows won't let you. The programs you've encountered that are case-sensitive are most likely Unix ports that did not take into account this Unix/Windows difference.
-- Mike Smith
Hi again,
Thanks. I am doing the work on a windows box, but the files get put on
and used on a Unix box. Thus, the concern about whether the correctly
cased file is in the directory. It's a long story, but it sounds like
I won't be able to do my case check.
oj
Victor Bazarov wrote: or*******@aol.com wrote: I'm trying to check the existance of a file in Windows 2000 by opneing am fstream and seeing if it is open.
However, it seems that the executable doesn't care about case.
ie, if I am checking on myfile.txt and MyFile.txt is in there, it will return true. However, other programs do care about the case (myfile and MyFile are different), which is why I need to do what I am doing.
Am I right on this or is there something I am missing?
Are you right on WHAT? Windows 2000 file system is case-insensitive.
Yes, its off topic. But just to be clear, there is no such thing as a
Windows 200 file system. There's NTFS, and a couple versions of FAT. NTFS
is case sensitive, and that is the most common Windows 2000 file system.
--
If our hypothesis is about anything and not about some one or more
particular things, then our deductions constitute mathematics. Thus
mathematics may be defined as the subject in which we never know what we
are talking about, nor whether what we are saying is true.-Bertrand Russell
<or*******@aol.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com... Hi,
I'm trying to check the existance of a file in Windows 2000 by opneing am fstream and seeing if it is open.
However, it seems that the executable doesn't care about case.
Windows is case-insensitive but case-retentive.
So opening files using fstream that differ in case only is opening the same
file.
But it is case-retentive in that if you can use rename() to change case and
Windows will remember.
Stephen Howe
* Mike Smith: * or*******@aol.com: I'm trying to check the existance of a file in Windows 2000 by opneing am fstream and seeing if it is open.
However, it seems that the executable doesn't care about case.
ie, if I am checking on myfile.txt and MyFile.txt is in there, it will return true. However, other programs do care about the case (myfile and MyFile are different)
Well, those programs are doing it wrong. Windows filesystems are case-insensitive. You can't even *have* myfile.txt and MyFile.TXT in the same directory; Windows won't let you.
Sorry, that's incorrect.
But as Victor wrote elsewhere, that part of the question is off-topic in
this group.
--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
On Fri, 24 Jun 2005 18:49:50 -0400, "Steven T. Hatton"
<ch********@germania.sup> wrote in comp.lang.c++: Victor Bazarov wrote:
or*******@aol.com wrote: I'm trying to check the existance of a file in Windows 2000 by opneing am fstream and seeing if it is open.
However, it seems that the executable doesn't care about case.
ie, if I am checking on myfile.txt and MyFile.txt is in there, it will return true. However, other programs do care about the case (myfile and MyFile are different), which is why I need to do what I am doing.
Am I right on this or is there something I am missing?
Are you right on WHAT? Windows 2000 file system is case-insensitive.
Yes, its off topic. But just to be clear, there is no such thing as a Windows 200 file system. There's NTFS, and a couple versions of FAT. NTFS is case sensitive, and that is the most common Windows 2000 file system.
Extremely off-topic, but NTFS is case preserving, and not at all case
sensitive. There is quite a difference.
--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++ http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Jack Klein wrote: Extremely off-topic, but NTFS is case preserving, and not at all case sensitive. There is quite a difference.
Yes, that was already addressed in a previous post. I guess I forgot about
the idiosyncracies of NTFS in the 5 years since I stopped using it on a
regular basis.
--
If our hypothesis is about anything and not about some one or more
particular things, then our deductions constitute mathematics. Thus
mathematics may be defined as the subject in which we never know what we
are talking about, nor whether what we are saying is true.-Bertrand Russell
* Steven T. Hatton: Jack Klein wrote:
Extremely off-topic, but NTFS is case preserving, and not at all case sensitive. There is quite a difference. Yes, that was already addressed in a previous post. I guess I forgot about the idiosyncracies of NTFS in the 5 years since I stopped using it on a regular basis.
Sorry, that's incorrect (Posix 0.9 semantics supported since NT 3.5x), and
as Victor wrote, it's off-topic.
--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Elliot Temple |
last post by:
Hi I have two questions. Could someone explain to me why Python is
case sensitive? I find that annoying. Also, why aren't there
multiline comments? Would adding them cause a problem of some...
|
by: Paul Smith |
last post by:
This doesn't seem like it should be *that* difficult, but after
quite some time trying to figure it out, I'm still banging my
head against the wall.
My objective is to examine the exact...
|
by: Neo-LISPer |
last post by:
Hey
Recently, I researched using C++ for game programming and here is what
I found:
C++ game developers spend a lot of their time debugging corrupted
memory. Few, if any, compilers offer...
|
by: adrian suri |
last post by:
Hi
short question are selectors h1, h2 <script> p etc now case sensitive in
the world of DHTML eg transitional / strict
regards
Adrian
|
by: aki999 |
last post by:
We need to install CI database on CS server, and there are some issues
with stored procedures.
Database works and have CI collation (Polish_CI_AS). Server has
coresponding CS collation...
|
by: Starwiz |
last post by:
I'm a VB.net programmer, and I'm about to start working
with two C++ programmers and teach them .net.
I've decided to use C# in teaching them, since it's
similar enough to VB.net that I can read...
|
by: crosser |
last post by:
I have class written in C# with elements:
1. Private variable: aaa
2. Protected overridable property AAA
the only differrence in names is case sensitivity.
Is it possible to shadow...
|
by: Anita Potekkat |
last post by:
Hello,
I had a question regarding Case Sensitivity in 10g & 9i.
(1) Does Case Sensitivity in Oracle have to do with data only? Or does it also effect table & column names? For e.g. in a table...
|
by: Stef Mientki |
last post by:
hello,
How can I find the correct case of a filename ?
Background in my program I use case sensitive filenames, just like
Python requires.
Now I've integrated pdb into the program,
but pdb...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |