Jump to content
  • Advertisement


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


Making sure a file exists...

This topic is 5780 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...
            End If
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

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!