I've learnt a bit of File i/o and have made a simple Bank Manager using txt files. I was wandering if there was anyway to make the text documant be saved somewhere else other than the folder that the .exe file is saved in.
Thanks in advance
I've learnt a bit of File i/o and have made a simple Bank Manager using txt files. I was wandering if there was anyway to make the text documant be saved somewhere else other than the folder that the .exe file is saved in.
Thanks in advance
I started out with nothing and I still have most of it left.
Yes - just specify the whole path of the file and it will be saved in that folder.
how do you specify the whole path. I call it by doing
("example.txt")
I started out with nothing and I still have most of it left.
Depending on your OS (Unix doesn't use drive letters), you just start with the drive letter and go all the way to the file extension.
[code]("C:\folder1\folder2\file.type")[code]
That's an absolute path. What you are doing is called a relative path. You can also access subdirectories that way:
Code:("subdir1\file.type")
thank-you
I started out with nothing and I still have most of it left.