Перейти из форума на сайт.

НовостиФайловые архивы
ПоискАктивные темыТоп лист
ПравилаКто в on-line?
Вход Забыли пароль? Первый раз на этом сайте? Регистрация
Компьютерный форум Ru.Board » Компьютеры » Программы » TextPipe

Модерирует : gyra, Maz

 Версия для печати • ПодписатьсяДобавить в закладки
На первую страницук этому сообщениюк последнему сообщению

Открыть новую тему     Написать ответ в эту тему

Romul81



Advanced Member
Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору
//This example script keeps a line counter that
//does not reset for each file
 
//Our line counter
var a;
 
//Called for every line in the file
//EOL contains the end of line characters (Unix, DOS or Mac) that must be
//appended to each line
function processLine(line, EOL)
{
  a = a + 1;
  //add the count to the end of each line
  return line + " " + a + EOL;
}
 
 
//Called at the start of a processing job -
//perform one-time initialisation here
function startJob()
{
  a = 0;
}
 
 
//Called at the end of a processing job -
//destroy any declared objects here
function endJob()
{
  ; //do nothing
}
 
 
//Called before each file is opened -
//perform per-file initialisation here
function startFile()
{
  return "";
}
 
 
//Called before each file is closed -
//flush all pending file output here
function endFile()
{
  return "";
}

Всего записей: 1327 | Зарегистр. 03-03-2008 | Отправлено: 12:41 06-07-2017 | Исправлено: Romul81, 02:11 08-07-2017
Открыть новую тему     Написать ответ в эту тему

На первую страницук этому сообщениюк последнему сообщению

Компьютерный форум Ru.Board » Компьютеры » Программы » TextPipe


Реклама на форуме Ru.Board.

Powered by Ikonboard "v2.1.7b" © 2000 Ikonboard.com
Modified by Ru.B0ard
© Ru.B0ard 2000-2024

BitCoin: 1NGG1chHtUvrtEqjeerQCKDMUi6S6CG4iC

Рейтинг.ru