File I/O file Checks

Can i check to confirm that all the needed files exist?

Page 1 of 1

2 Replies - 896 Views - Last Post: 26 December 2007 - 12:59 PM Rate Topic: -----

#1 Delta_Echo   User is offline

  • D.I.C Addict

Reputation: 5
  • View blog
  • Posts: 722
  • Joined: 24-October 07

File I/O file Checks

Posted 26 December 2007 - 12:37 PM

I want to be able to, at the beginning of a program, to confirm that all the files that i will need are where they are suppose to be. So that the program won't have to end while you are half way in just becuase a file is missing. So can I?
Thanks!
Is This A Good Question/Topic? 0
  • +

Replies To: File I/O file Checks

#2 no2pencil   User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6968
  • View blog
  • Posts: 31,958
  • Joined: 10-May 07

Re: File I/O file Checks

Posted 26 December 2007 - 12:48 PM

Using fopen & check for the file pointer. You can even create the file if it doesn't exist.
Was This Post Helpful? 0
  • +
  • -

#3 Delta_Echo   User is offline

  • D.I.C Addict

Reputation: 5
  • View blog
  • Posts: 722
  • Joined: 24-October 07

Re: File I/O file Checks

Posted 26 December 2007 - 12:59 PM

Thanks :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1