Example code : Try to delete a file twice. var fileName : string; myFile : TextFile; data : string; begin // Try to open a text file for writing to fileName := 'Test.txt';
www.delphibasics.co.uk