|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Existsing of FileHi EveryBody:
How can I check if the file created by me exists or not? any help will be appreciated regard's Husam Husam,
System.IO.File.Exists() Jason Newell, MCAD Software Engineer Husam wrote: Show quoteHide quote > Hi EveryBody: > > How can I check if the file created by me exists or not? > > any help will be appreciated > > regard's > > Husam Hi EveryBody:
I just really want to thank all of you for your quik and helpfull replayment regard's Husam Show quoteHide quote "Jason Newell" wrote: > Husam, > System.IO.File.Exists() > > Jason Newell, MCAD > Software Engineer > > Husam wrote: > > Hi EveryBody: > > > > How can I check if the file created by me exists or not? > > > > any help will be appreciated > > > > regard's > > > > Husam > "Husam" <Hu***@discussions.microsoft.com> schrieb: 'System.IO.File.Exists'.> How can I check if the file created by me exists or not? -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> System.IO.File.Exists
http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemiofileclassexiststopic.asp HTH rawCoder Show quoteHide quote "Husam" <Hu***@discussions.microsoft.com> wrote in message news:6FD6BDA2-76CF-4D62-AB37-7A070B5775CF@microsoft.com... > Hi EveryBody: > > How can I check if the file created by me exists or not? > > any help will be appreciated > > regard's > > Husam Select Case File.Exists(MyFileName)
Case True 'if the file does not exist, then creating (or whatever) Case False 'if it DOES exist, do nothing.. (or whatever) End Select "Chris Murphy via DotNetMonster.com" <fo***@DotNetMonster.com> wrote in Why would you choose to use "Select Case" when File.Exists()message news:78b35f7bf7aa48f2b238a1117824c452@DotNetMonster.com... > Select Case File.Exists(MyFileName) > Case True > 'if the file does not exist, then creating (or whatever) > Case False > 'if it DOES exist, do nothing.. (or whatever) > End Select returns a Boolean? Regards, Phill W. "Chris Murphy via DotNetMonster.com" <fo***@DotNetMonster.com> schrieb: I prefer 'If...Then':> Select Case File.Exists(MyFileName) > Case True > 'if the file does not exist, then creating (or whatever) > Case False > 'if it DOES exist, do nothing.. (or whatever) > End Select \\\ If File.Exists(...) Then ... Else ... End If /// -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/>
sql Server not found
What does this mean? (nested abstracts...) What happens to debugger here? Paging by example - help - still no luck.... Get processes list problem (win 2000) Collection Type BindingManagerBase Problem Hide members in a derived class Reading an XML file into a Dataset - problem forecolor of button ??? |
|||||||||||||||||||||||