Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
fpc-src / usr / share / fpcsrc / 3.2.0 / tests / webtbs / tw1479.pp
Size: Mime:
{$ifdef fpc}{$mode objfpc}{$endif}

uses
  sysutils;

const
  fname = 'tw1479.tmp';

 ThisDir = '.'+DirectorySeparator;
var
  fn : string;
  f : text;
begin
  assign(f,fname);
  rewrite(f);
  writeln(f,'hello');
  close(f);

  fn:=FileSearch(fname,PathSeparator);
  writeln('found: ',fn);
  if fn<>fname then
   halt(1);
  fn:=FileSearch(ThisDir+fname,PathSeparator);
  writeln('found: ',fn);
  if fn<>ThisDir+fname then
   halt(1);
  erase(f);
end.