Maarten Versteeg
January 13th, 2000, 09:46 AM
Hi,
Is it possible to "include" a txt file, let's say test.txt in my project.
I'm now opening a file for reading with:
Open "C:\project\program\test.txt" for input as #1
But I want to be able to open the file for reading without specifying to whole path, but just specify the filename only.
I'm asking this because my project will be copied several times and every time in a different directory.
Open "C:\project1\program\test.txt" for input as #1
Open "C:\project2\program\test.txt" for input as #1
Open "C:\project3\program\test.txt" for input as #1
When my project becomes very large with multiple files to be opened, I don't want to get errors and change the pathnames everytime for all the files.
Does anyone have I solution how I can handle this problem?
Thanx,
Maarten
Is it possible to "include" a txt file, let's say test.txt in my project.
I'm now opening a file for reading with:
Open "C:\project\program\test.txt" for input as #1
But I want to be able to open the file for reading without specifying to whole path, but just specify the filename only.
I'm asking this because my project will be copied several times and every time in a different directory.
Open "C:\project1\program\test.txt" for input as #1
Open "C:\project2\program\test.txt" for input as #1
Open "C:\project3\program\test.txt" for input as #1
When my project becomes very large with multiple files to be opened, I don't want to get errors and change the pathnames everytime for all the files.
Does anyone have I solution how I can handle this problem?
Thanx,
Maarten