Ok, I'm working on something in Visual Basic that I'm trying to get to use Subdirectories for the Graphics, Sound etc. The problem is, I don't know if VB is capable of specifying a directory relative to the Root, it should be.
For example, I want to use something like
FileOpen(1, "\Texts\" & FileName & ".txt", OpenMode.Read)
It's not a problem when I'm working from the Root file to simply open Filename & ".txt", and I've tried forming the entire string before sending it to FileOpen but still no luck.
Any help?
3
I just couldn't help but mention that a directory located in the root is simply referred to as "text\text.txt"
4
I have experiance in C++ only but, couldn't you put the filename into an array, and then just point it to the array position with the filename in it?
"If toast always lands butter-side down, and cats always land on their feet, what happens if you strap toast on the back of a cat and drop it?"
-Steven Wright
-Steven Wright
5
I managed to sort it using the CurDir function, basically, I was generating filenames, which were in subdirectories, but simply referencing '/images/'+Name was producing an error, the fault was I had to use CurDir() + '/images/' + Name, not a biggie, but a pain if you don't know the keyword needed 

6
Yes, it was producing an error because you had that leading \ when you didn't need it. "images\" would have worked fine.
7
Ahhh... Gotcha
I would say I'll remember it for next time, but I'm doing Java next term, so I doubt I'll be using VB again for a while.
By the way, VB is great on a Core2Duo, I swear I could probably write some Dark Basic Direct3D stuff on here and write a pretty passable game with it

By the way, VB is great on a Core2Duo, I swear I could probably write some Dark Basic Direct3D stuff on here and write a pretty passable game with it

Check out my music on my YouTube channel :
https://www.youtube.com/user/PRDibble/videos
https://www.youtube.com/user/PRDibble/videos