Qbasicnews.com

Full Version: Directorys
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do you read things from inside a file

and on another note i noticed that some files if read in dos modes only read half the file name then put a ~. how do you know which files those are?
Files marked with a ~ mean that the filename is longer than the standard 8.3 DOS filename format.

Bluebunnies.txt (Windows) = Bluebu~1.txt (DOS)

It cuts the filename down to 6 characters and adds the ~1 (or ~2, ~3, etc.) followed by the filename. If you have 2 files that similar in name, the one that was created first gets the ~1 added to it and the other gets the ~2 added to it. It works the same way for multiple files.

For directories, they just use the 6 characters and the ~1, unless the directory has a "." in it. Then it adds the first 3 characters after the ".":

[ExampleDirectory] (Windows) = [Exampl~1] (DOS)
[ExampleV.13b] (Windows) = [Exampl~1.13b] (DOS)

It's odd, but that's the way it works.