• Модуль: translate
  • Путь к файлу: ~/bitrix/modules/translate/lib/io/file.php
  • Класс: BitrixTranslateIOFile
  • Вызов: File::write
public function write(string $content): int
{
	if (!is_resource($this->filePointer))
	{
		throw new MainIOFileNotOpenedException($this->getPath());
	}

	$length = fwrite($this->filePointer, $content);
	if ($length === false)
	{
		throw new MainIOIoException("Cannot write file");
	}

	return $length;
}