3
{ Program to demonstrate the ReadLink function. }
11
Assign (F,'test.txt');
13
Writeln (F,'This is written to test.txt');
15
{ new.txt and test.txt are now the same file }
16
if fpSymLink ('test.txt','new.txt')<>0 then
17
writeln ('Error when symlinking !');
18
S:=fpReadLink('new.txt');
20
Writeln ('Error reading link !')
22
Writeln ('Link points to : ',S);
24
If fpUnlink ('new.txt')<>0 then
25
Writeln ('Error when unlinking !');
26
If fpUnlink ('test.txt')<>0 then
27
Writeln ('Error when unlinking !');