• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/io/file.php
  • Класс: BitrixMainIOFile
  • Вызов: File::open
public function open($mode)
{
	$this->filePointer = fopen($this->getPhysicalPath(), $mode."b");
	if (!$this->filePointer)
	{
		throw new FileOpenException($this->originalPath);
	}
	return $this->filePointer;
}