0

I've come across EOF (something called "end of file " right? ) on numerous occasions when I was browsing though the python documentation.
What is it and what is it's significance?
Also what is a buffer?
eg: "incomplete data is buffered until more data is fed or close() is called."

3
Contributors
3
Replies
4
Views
8 Years
Discussion Span
Last Post by bumsfeld
0

The EOF is a marker byte that is at the end of any file. If I remember my C days, it is physically -1 or such thing. It is significant to any computer language that reads/writes files. In Windows EOF is generated with key combination ctrl-z and in Linux with ctrl-d.

A buffer is simply storage in memory for data, mostly of temporary nature.

0

Is the RAM used as the buffer?

I would say yes, unless your Operating System uses disk space as virtual memory.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.