Java string separator. .Ext delimiter

I'm wondering about Java: is there a file extension separator?

like * .doc, "." question.

I know there is line.separator. just want my application to be portable, so I need to know.

thanks.

+2


a source to share


1 answer


.

which is the filename from the file extension separator is a DOS artifact and its 8.3 filename restrictions. On Windows, MacOS X, Linus, etc. This is no longer the case. .

is just any other character (although .

the Linux / Unix master filesystem points to a hidden file).

Windows systems still use the convention (even though you can create a filename with as many periods as you want) as the extension is still used to type and combine files. Linux / Unix / MacOS X tend to rely on magic numbers more than file extensions, although conventions are also used there (like .pl' for Perl files,

.sh` for shell scripts, etc.), but unlike Windows, this is simple agreements that do not matter OS.



So there is basically no concept of a "file separator". In any case, not in a universal sense.

+4


a source







All Articles