Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
15
Добавлен:
10.12.2013
Размер:
471 б
Скачать
//*************************************************
// This program removes (i.e. erases) a file
// First it asks for the name of the file
// Then it assigns the name to a file variable
// Finally it calls 'erase' on the file variable
//************************************************
program rm(input, output);
var
   fn : filename;
   f : binary;
begin
   write('Which file do you want to delete? ');
   readln(fn);
   assign(f, fn);
   erase(f);
end.
Соседние файлы в папке samples