Results 1 to 3 of 3

Thread: FileExists(string) in CF?

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2006
    Posts
    5

    FileExists(string) in CF?

    Is there an easy way to determine if a file exists in the compact framework?

    -cwm9

  2. #2
    Frenzied Member conipto's Avatar
    Join Date
    Jun 2005
    Location
    Chicago
    Posts
    1,175

    Re: FileExists(string) in CF?

    IO.File.Exists(filename) is a boolean function, which according to MSDN works with the compact framework.

    Although, I believe you'd have to either import the namespace System.IO or use it like..

    If System.IO.File.Exists(filename) Then

    Bill
    Hate Adobe Acrobat? My Codebank Sumbissions - Easy CodeDom Expression evaluator: (VB / C# ) -- C# Scrolling Text Display

    I Like to code when drunk. Don't say you weren't warned.

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2006
    Posts
    5

    Re: FileExists(string) in CF?

    Ah, thanks, I was trying to use the .FileExists() method which isn't in the CF. Thanks for pointing me to .File.Exists()

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