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 |
|