From Clomosy Docs

No edit summary
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 15: Line 15:


<b>Example</b><br>
<b>Example</b><br>
<b>TRObject Syntax</b><br>
 
<pre>
<pre>
var
var
Line 23: Line 23:
   ReWrite(file1);
   ReWrite(file1);
}
}
</pre>
<b>Base Syntax</b><br>
<pre>
var
  file1 : TextFile;
begin
  AssignFile(file1, 'Test.txt');
  ReWrite(file1);
end;
</pre>
</pre>


<h2> See Also </h2>
<h2> See Also </h2>
* [[File_Handling | File Handling]]
* [[File_Handling | File Handling]]
{{#seo:|title=ReWrite in Clomosy - Clomosy Docs}}
{{#seo:|description=Explore ReWrite in Clomosy! Streamline data management and enhance app efficiency with seamless data rewriting functionality.}}

Latest revision as of 13:12, 24 December 2024

Opening the file in write mode erases its content and prepares it to write new data.
The file created with AssignFile is opened with ReWrite using the file name specified in the directory where the Clomosy Learn application is located.

Example

var
  file1 : TextFile;
{
  AssignFile(file1, 'Test.txt');
  ReWrite(file1);
}

See Also