Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Directorys
#1
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?
his world has been connected...
Tied to the darkness.
Soon to be completely eclipsed.
There is so very much to learn...
You understand so little.
A meaningless effort.
One who knows nothing can understand nothing.
-Ansem Bringer of darkness and creator of the heartless
Reply
#2
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.
974277320612072617420666C61696C21 (Hexadecimal for those who don't know)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)