Results 1 to 5 of 5

Thread: File exists (app path)

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    ON, CAN
    Posts
    265

    File exists (app path)

    hello,

    I want to check if a file (data.dat) exits in the application path, but i have no idea how to do this..

    hehe, i tried app.path but doesnt seem to work

    Regan

  2. #2
    dmartin17
    Guest
    MOHH---

    did you try this


    Code:
    File.Exists("filename.dat");
    That might work. I'm not sure if it checks the working directory but i'd assume so. Try that though

    btw- when switching subjects like this its best to start a new thread. (looks like you did this, my bad!)

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    ON, CAN
    Posts
    265
    thank you i'll try that

    hehe, i came here to post a question, but i quickly checked the "other" post, silly me forgot to return to main board before making my post

    Regan

  4. #4
    dmartin17
    Guest
    ya i was answeing my question say yours, answered and made the snide comment. Then i saw the forum

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    ON, CAN
    Posts
    265
    tested and worked thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width