what's the .net replacement for ios::nocreate

H

HLSL fan

In the new VC++ 7.0 ios::nocreate is obsolete. Does any one know what
I should do to achieve the same goal? I really want to check if a
file exists before reading from it.

Thanks in advance.


jtreepeace
 
H

Howard

HLSL fan said:
In the new VC++ 7.0 ios::nocreate is obsolete. Does any one know what
I should do to achieve the same goal? I really want to check if a
file exists before reading from it.

Thanks in advance.


jtreepeace

Try asking in a .net newsgroup. Check the news.microsoft.com server for
available newsgroups.

-Howard
 
J

John Harrison

HLSL fan said:
In the new VC++ 7.0 ios::nocreate is obsolete. Does any one know what
I should do to achieve the same goal? I really want to check if a
file exists before reading from it.

Thanks in advance.


jtreepeace

There is no need for nocreate. If you open a file for reading and the file
doesn't exist, then the open will fail. Nocreate is the default if you like.

john
 
H

HLSL fan

John Harrison said:
There is no need for nocreate. If you open a file for reading and the file
doesn't exist, then the open will fail. Nocreate is the default if you like.

john

Thank you.

jtreepeace
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,175
Messages
2,570,947
Members
47,498
Latest member
yelene6679

Latest Threads

Top