Unit 'pascodegen' Package
[Overview][Constants][Types][Classes][Index] [#fcl]

TPascalCodeGenerator.SaveToFile

Save generated source code to file

Declaration

Source position: pascodegen.pp line 102

public procedure TPascalCodeGenerator.SaveToFile(

  const AFileName: string

);

Arguments

AFileName

  

Filename to save to

Description

SaveToFile saves the generated source code to the specified file. If no output unit name is set and the source is empty, it automatically sets the output unit name based on the filename.

See also

TPascalCodeGenerator.SaveToStream

  

Save generated source code to stream

TPascalCodeGenerator.OutputUnitName

  

Name of the output unit

TPascalCodeGenerator.Source

  

Generated source code string list


Documentation generated on: Dec 19 2025