home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 153.img / TELES.ZIP / LAME-0.PAS < prev    next >
Pascal/Delphi Source File  |  1988-07-14  |  1KB  |  30 lines

  1. procedure editfiles;
  2. var pl,c,rn,int,dbn,x:integer; f:ulfrec; fn,fd,lm:astr; ff:file; i:astr;
  3. begin
  4.   print('Enter filename to edit'); prt(': '); mpl(12);
  5.   input(fn,12); nl; nl;
  6.   if fn<>'' then begin
  7.     recno(fn,pl,rn);
  8.     if rn<>0 then begin
  9.       seek(ulff,rn); read(ulff,f);
  10.       print(f.filename+' : '+f.description); nl; nl;
  11.       ynq('Rename this stuff? ');
  12.       if yn then begin
  13.         prt('New file points? '); mpl(3); input(lm,3); f.filepoints:=value(lm);
  14.         prt('New filename? '); mpl(12); input(fn,12);
  15.         if fn<>'' then begin
  16.           if exist(uboards[FILEBOARD].dlpath+fn) then print('Can''t use that filename.') else begin
  17.             assign(ff,uboards[FILEBOARD].dlpath+f.filename);
  18.             {$I-} rename(ff,uboards[FILEBOARD].dlpath+fn); {$I+} x:=ioresult;
  19.             f.filename:=align(fn);
  20.           end;
  21.         end;
  22.         print('New description -'); prt(': '); inputl(fd,60);
  23.         if fd<>'' then f.description:=fd;
  24.         seek(ulff,rn); write(ulff,f);
  25.       end;
  26.     end;
  27.     close(ulff);
  28.   end;
  29. end;
  30.