JCL Help:CreateEmptyFile

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Creates a new file with a zero length.


Pascal

 procedure CreateEmptyFile(const FileName: string);


Parameters

Parameters Description
const FileName: string Name of the file to create.


Description

CreateEmptyFile creates a new file with size of zero, that is without content. If a file with the same name already exists but isn't opened, the file is overwritten. Upon failure an exception is raised, for example if a file with the same name already exists but is opened.


About

Unit

JclFileUtils


Donator

Anthony Steele


Platforms

Windows


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page