In Python, what is the difference between an open file and a socket?


Warning: Trying to access array offset on false in /home3/indiakep/public_html/wp-content/plugins/dw-question-answer/inc/Template.php on line 8
All QuestionsCategory: NetworksIn Python, what is the difference between an open file and a socket?
Chetan Shidling Staff asked 5 years ago

Options:

  1. When you open a file, you get a read and write handle to allow simultaneous operations
  2. A program can rewind a socket and start writing again at the beginning of the socket
  3. A program writes to a socket, it can read its data back after closing the socket
  4. A socket can be simultaneously read and written