J
Jeff
I feel like I should have been able to figure this out but I can't seem
to find any references on this topic.
It seems like my current working directory is consistently a few
directories up from where I am storing the file - not what I would have
expected. I would have expected it to be the same directory as the dir
with my code - I guess I was wrong because thats not what is happening.
On my own computer it wasn't a big problem because I dodged the
problem by put my data in the root wherever that may have been.
However, now that I have uploaded my files to the internet, I don't
have that kind of control of my file system and I don't know the
structure to make an absolute work path.
Dim oRead as System.IO.StreamReader
Dim oFile as System.IO.File
oRead = oFile.OpenText("Library.txt")
the code is simple enough. is there anyway to resolve this? perhaps by
setting the current working directory or some other solution? it seems
that sticking my data files in the same directory as the app isn't
enough. the fact that my directory hierarchy is unpredictable is
complicating things beyond my ability. thanks in advance.
as i am writing this the idea ccured to me that maybe I should just
find out the directory hierarchy from my host.
to find any references on this topic.
It seems like my current working directory is consistently a few
directories up from where I am storing the file - not what I would have
expected. I would have expected it to be the same directory as the dir
with my code - I guess I was wrong because thats not what is happening.
On my own computer it wasn't a big problem because I dodged the
problem by put my data in the root wherever that may have been.
However, now that I have uploaded my files to the internet, I don't
have that kind of control of my file system and I don't know the
structure to make an absolute work path.
Dim oRead as System.IO.StreamReader
Dim oFile as System.IO.File
oRead = oFile.OpenText("Library.txt")
the code is simple enough. is there anyway to resolve this? perhaps by
setting the current working directory or some other solution? it seems
that sticking my data files in the same directory as the app isn't
enough. the fact that my directory hierarchy is unpredictable is
complicating things beyond my ability. thanks in advance.
as i am writing this the idea ccured to me that maybe I should just
find out the directory hierarchy from my host.