3 ms·
Does an empty file contain characters? That first sentence seems like it contradicts itself.
by macintux 5y ago
Does an empty file contain characters? That first sentence seems like it contradicts itself.
- nerdponx 5y agoI think the implication is that empty files are considered text files.
- brianpan 5y agoYes. It contains zero characters. An empty file actually contains zero of everything in the universe.
- dfox 5y agoThe idea behind the definition is that it defines set of files that will not trigger various bugs in traditional unix text tools implementations (ie. various variants of not checking the fgets() return value).