Click here to Skip to main content
15,891,865 members

Survey Results

Is the "." part of a file's extension?

Survey period: 14 Nov 2022 to 21 Nov 2022

Your personal opinion, not "what my framework says". Is the "." in "filename.ext" part of the extension or not?

OptionVotes% 
The "." is part of the extension16019.28
It is NOT part of the extension52162.77
I refuse to vote because I don't care.14917.95



 
GeneralMissing option: there is no dot PinPopular
PIEBALDconsult14-Nov-22 2:13
mvePIEBALDconsult14-Nov-22 2:13 
GeneralRe: Missing option: there is no dot Pin
OriginalGriff15-Nov-22 6:50
mveOriginalGriff15-Nov-22 6:50 
GeneralRe: Missing option: there is no dot Pin
PIEBALDconsult16-Nov-22 3:32
mvePIEBALDconsult16-Nov-22 3:32 
Generalin dotnet API, extension includes the dot Pin
pierrecoach14-Nov-22 0:11
professionalpierrecoach14-Nov-22 0:11 
GeneralRe: in dotnet API, extension includes the dot Pin
RunDosRun14-Nov-22 4:34
RunDosRun14-Nov-22 4:34 
GeneralRe: in dotnet API, extension includes the dot Pin
PIEBALDconsult14-Nov-22 5:06
mvePIEBALDconsult14-Nov-22 5:06 
GeneralRe: in dotnet API, extension includes the dot Pin
Jacquers14-Nov-22 19:58
Jacquers14-Nov-22 19:58 
GeneralRe: in dotnet API, extension includes the dot Pin
trønderen15-Nov-22 0:08
trønderen15-Nov-22 0:08 
A directory name doesn't have a \ at the end, either.
So therefore, the \ that you have to add before a subdirectory is not a delimiter, is that right?
The \ is part of the subdirectory name, right?

If we had a file system without extensions, but related files were collected in a directory, e.g.

...\myprogram\h    (for the declarations)
...\myprogram\c    (for the active statement code)
...\myprogram\obj  (for the compiled object code)
...\myprogram\exe  (for the linked executable)

then the separating slashes are delimiters, and not part of neither directory nor file name - right? But if we have two separate name parts in the same file name descriptor (as in FAT), externally separated by a dot, like

...\myprogram.h    (for the declarations)
...\myprogram.c    (for the active statement code)
...\myprogram.obj  (for the compiled object code)
...\myprogram.exe  (for the linked executable)

then the separator is not a delimiter, and we make an arbitrary decision to associate it with the second name part, part of the extension?

You can take it one step further: Named (alternate) streams. ...\dir\Myfile.txt:stream2 - is the colon part of the stream name, similar to the dot being part of the extension? The slashes and colon are not part of any name part, while the dot is part of the extension name part? That appears rather random, arbitrary - doesn't it?`

In a *nix filesystem with no real concept of an 'extension', it makes sort of sense, except that it makes less sense to extract part of a name and call it 'extension'. In FAT, it is different. In NTFS, it is mixed.

So my answer to the question is 'Can't tell!' - but that is not one of the options.
GeneralRe: in dotnet API, extension includes the dot Pin
jweled15-Nov-22 1:32
jweled15-Nov-22 1:32 
Generalthe "." is the delimiter between filename and extension PinPopular
Mike (Prof. Chuck)13-Nov-22 21:14
professionalMike (Prof. Chuck)13-Nov-22 21:14 
GeneralRe: the "." is the delimiter between filename and extension Pin
den2k8813-Nov-22 22:51
professionalden2k8813-Nov-22 22:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.