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."

Recommended Answers

All 3 Replies

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.

Is the RAM used as the buffer?

Is the RAM used as the buffer?

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.