tw1092.pp 345 B

123456789101112131415161718192021
  1. PROGRAM tbug1092;
  2. USES Dos;
  3. const
  4. {$Ifdef linux}
  5. path='/etc';
  6. {$else}
  7. path='c:\';
  8. {$endif}
  9. var
  10. t : text;
  11. BEGIN
  12. { create a file }
  13. assign(t,'tbug1092.tmp');
  14. rewrite(t);
  15. close(t);
  16. if FSearch('tbug1092.tmp',path)<>'tbug1092.tmp' then
  17. begin
  18. writeln('FSearch didn''t find file in the current dir!');
  19. halt(1);
  20. end;
  21. END.