| **Navigation:**  [[templates.htm|Templates]] > [[tlrcontents.htm|Template Language Reference]] > Complete Alpha Listing >====== #CREATE (create source file) {{c6h0068.jpg|C6H0068.jpg}} ====== | [[ control define a control template .htm|{{btn_prev_n.gif|Previous page}}]][[tlrcontents.htm|{{btn_home_n.gif|Return to chapter overview}}]][[ cycle cycle to top of loop .htm|{{btn_next_n.gif|Next page}}]] | | || **#CREATE(** //file// **)** {{blk2blue.jpg|blk2blue.jpg}} | **#CREATE** | Creates a disk file to receive generated source code. | | //file// | A string constant, template symbol, or expression containing a DOS file specification. This may be a fully qualified DOS pathname. | The **#CREATE** statement creates a disk file to receive the source code generated by #GENERATE. If the //file// does not exist, it is created. If the //file// already exists, it is opened and emptied (truncated to zero length). If the //file// is already open, a source generation error is produced. The //file// is automatically selected as the active source output destination. Any file that is created must be closed with a #CLOSE statement. **Example:** **#SET(%NewProgramFile,(%Application & '.$$$'))    #!Temp new program filename** **#CREATE****(%NewProgramFile)                         #!Create new program file** **#GENERATE(%Program)                              #!Generate main program header** **See Also:     **[[ close close source file .htm|#CLOSE]]