Y
Hacker News
new
|
ask
|
show
|
jobs
by
macintux
1532 days ago
Does an empty file contain characters? That first sentence seems like it contradicts itself.
3 comments
brianpan
1532 days ago
Yes. It contains zero characters.
An empty file actually contains zero of everything in the universe.
link
dfox
1532 days ago
The 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).
link
nerdponx
1532 days ago
I think the implication is that empty files are considered text files.
link
An empty file actually contains zero of everything in the universe.