Why is 'binary access meaningless on UNIX systems'?

<>

This question already has an answer here:

Answers


Traditional windows system have different representation of text and binary files. Text files have a end of file marker (^-Z marker), so you can't read that character if you open it in text mode, IO layer will just detect it and returns you that you are at the end of file. In binary mode, it behaves like Unix systems.

Unix doesn't take care about file content, and provide no such semantic. On Unix, end of file, is just a try to read something past the length of the stream. This is why text or binary mode doesn't matters in Unix world, any character can appear in any kind of regular file.


Need Your Help

GraphicsPath - Why does order of AddLine methods matter

c# gdi+

I am drawing a triangle with the following code

How to check if the first character of a string is number in bash?

xml regex bash shell

I am writing an xml element in bash. I need to replace some strings which will start with numbers into something that starts with an character, so it is a valid XML tag (remember xml tags cannot st...