• Advertisement

Archived

This topic is now archived and is closed to further replies.

Making sure a file exists...

This topic is 5506 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How do I make sure a File Exists in VB.NET... Here is my function so far...
        For i = 0 To MAX_LEVELS - 1
                Levels(i) = New clsLevel()
        Next i


        For CurrentLevel = 0 To MAX_LEVELS - 1
            If Not Levels(CurrentLevel).active Then
                path = Application.StartupPath & "/levels/level" & CurrentLevel.ToString & ".lvl"
                ''// CHECK PATH HERE...
                Levels(CurrentLevel).InitLevel(path)
            End If
        Next
 
I want to make sure that the path exists before I pass it... Remember, VB.NET...not C++ and not VB6...thanks <- Digital Explosions -> "Discipline is my sword, faith is my shield do not dive into uncertainty, and you may live to reap the rewards" - (Unreal Championship)

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement