SORU
2 EYLÜL 2008, Salı


Nasıl bir dosya C# / var olup olmadığını öğrenmek için .NET?

Bir dize C o dosyanın varlığı (Perl -e test veya Python os.path.exists() gibi bir şey) bir dosya için bir yol içeren test etmek istiyorum#.

CEVAP
2 EYLÜL 2008, Salı


Kullanımı:

File.Exists(path)

MSDN: http://msdn.microsoft.com/en-us/library/system.io.file.exists.aspx

Edit: Sistem.IO

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Android Police

    Android Poli

    21 NİSAN 2010
  • MugenPowerBatteries

    MugenPowerBa

    8 EKİM 2010
  • pucksz

    pucksz

    24 Mart 2006