• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/csv_data.php
  • Класс: CCSVData
  • Вызов: CCSVData::IncCurPos
public function IncCurPos()
{
	if (!$this->__file)
	{
		return;
	}

	$this->iCurPos++;
	$this->__buffer_pos++;
	if($this->__buffer_pos >= $this->__buffer_size)
	{
		if(feof($this->__file))
		{
			$this->__buffer = "";
		}
		else
		{
			$this->__buffer = fread($this->__file, 1024*1024);
		}
		$this->__buffer_size = strlen($this->__buffer);
		$this->__buffer_pos = 0;
	}
}