Jump to content
Sign in to follow this  
Max in montreal

using a variable in a file name

Recommended Posts

Max in montreal

I am trying to see if certain files exist. These files are called 1.txt, 2.txt, 3.txt...

using this:

If FileExists("sonysonylineup1.txt") Then do something.

How can I replace the 1 in the filename with a variable in the line above?

Thanks in advance for the help!


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this