| **Navigation:**  [[templates.htm|Templates]] > [[tlrcontents.htm|Template Language Reference]] > Complete Alpha Listing >====== #APPEND (add to source file) {{c6h0068.jpg|C6H0068.jpg}} ====== | [[ alias tryalias access a symbol from another instance .htm|{{btn_prev_n.gif|Previous page}}]][[tlrcontents.htm|{{btn_home_n.gif|Return to chapter overview}}]][[ application source generation control section .htm|{{btn_next_n.gif|Next page}}]] | | || **#APPEND(** //file// **) **[, **SECTION** ] {{blk2blue.jpg|blk2blue.jpg}} | **#APPEND** | Adds the //file// contents to the end of the current source output destination file. | | //file// | A string constant, template symbol, or expression containing a DOS file specification. This may be a fully qualified DOS pathname. | | **SECTION** | Specifies the error position of embedded source code is correctly patched to reflect the actual position in the generated code. | The **#APPEND** statement adds the complete contents of the //file// to the end of the current source output destination file. The contents of the //file// are NOT interpreted for source generation purposes. Therefore, the //file// should not contain any Template Language code. If the //file// does not exist, #APPEND is ignored and source generation continues. **Example:** **#FOR(%Module)** **  #SET(%TempModuleFile,(%Module & '.$$$'))          #!Set temp module file** **  #CREATE(%TempModuleFile)                          #!Create temp module file** **  #FOR(%ModuleProcedure)                            #!For all procs in module** **    #FIX(%Procedure,%ModuleProcedure)               #!Fix current procedure** **    #GENERATE(%Procedure)                           #!Generate procedure code** **  #ENDFOR                                           #!EndFor all procs in module** **  #SET(%ModuleFile,(%Module & '.CLW'))              #!Set to current module file** **  #CREATE(%ModuleFile)                              #!Create module file** **  #GENERATE(%Module)                                #!Generate module header** ** ****#APPEND****(%TempModuleFile),SECTION                  #!Add generated procedures** **#ENDFOR** **See Also:     **[[ section define code section .htm|#SECTION]]