From Clomosy Docs

Revision as of 12:05, 23 October 2024 by ClomosyManager (talk | contribs) (Created page with "<div class="alert alert-ligth border border-3 border-primary-subtle rounded-5 p-4 shadow-sm" role="alert"> procedure Reset(var FileHandle TextFile); </div> It is used to open the specified file in read or write mode.<br> <b>Example</b><br> <pre> var file1: TextFile; { if clFileExists('dosya.txt') then { AssignFile(file1, 'dosya.txt'); Reset(file1); //Reading or writing operations can be performed. } } </pre> <h2> See Also </h2> * File_Handli...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

It is used to open the specified file in read or write mode.

Example

var
  file1: TextFile;
{
  if clFileExists('dosya.txt') then
  {
    AssignFile(file1, 'dosya.txt');
    
    Reset(file1);
    //Reading or writing operations can be performed.
  }
}

See Also