![]() |
|
|
Регистрация | << Правила форума >> | FAQ | Пользователи | Календарь | Поиск | Сообщения за сегодня | Все разделы прочитаны |
|
Опции темы | Поиск в этой теме | Опции просмотра |
#5
|
||||
|
||||
![]() а если так:
Код:
procedure TForm1.Button1Click(Sender: TObject); var myFile: TextFile; s, buf: string; begin AssignFile(myFile, 'file.txt'); Reset(myFile); while not eof(myFile) do begin Readln(myFile, s); if s = '#3' then s:= '&3'; buf:= buf + s + #13#10; end; CloseFile(myFile); Rewrite(myFile); Writeln(myFile, buf); CloseFile(myFile); end; |