Link to home
Start Free TrialLog in
Avatar of seeshelle
seeshelle

asked on

opening files

I wrote a program that uses info from a text file. When I tried to copy and run from the A drive it can't find the text file, so I have to change the code a little. What I was wondering, was if there is a way to code it that will work from the C drive or the A drive. Here's the code for the C drive to be able to find the file.

Open App.Path & "\IntTest.txt" For Input As #2

In order for it to work with the A drive I had to change it to this.

Open App.Path & "IntTest.txt" For Input As #2

Well, any ideas??
ASKER CERTIFIED SOLUTION
Avatar of trillo
trillo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of seeshelle
seeshelle

ASKER

I'll give it a try!! thanks!