文件描述符


  1. 任何指定的文件描述符都必须支持写入。
  2. 如果将文件描述符指定为 file,则不会自动关闭。
  3. 写入将从文件的开头开始。例如,如果文件已经有内容 'Hello World' 并且新写的内容是 'Aloha',那么该文件的内容将是 'Aloha World' 而不仅仅是 'Aloha'
  1. Any specified file descriptor has to support writing.
  2. If a file descriptor is specified as the file, it will not be closed automatically.
  3. The writing will begin at the beginning of the file. For example, if the file already had 'Hello World' and the newly written content is 'Aloha', then the contents of the file would be 'Aloha World', rather than just 'Aloha'.