Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » How to prevent the opening of a file that does not exist
Re: How to prevent the opening of a file that does not exist [message #3775 is a reply to message #3774] Sat, 24 June 2006 16:42 Go to previous messageGo to previous message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
forlano wrote on Sat, 24 June 2006 12:26

Hello,

I'm opening a file for reading purpose with:

FileIn in(filename);

I would like to know which is the best method (in.IsOK(), in.IsError(), ...) to prevent the case in which the file doesn't exist.

Thank you,
Luigi


maybe this?
bool FileExists(const char *name)
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: String - Unicode?
Next Topic: Translation Problems (German)
Goto Forum:
  


Current Time: Sat Jun 08 14:29:38 CEST 2024

Total time taken to generate the page: 0.01930 seconds