DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
m4 macro processor

File inclusion

A new file can be included in the input at any time with the built-in macro include:

   include(filename)
inserts the contents of filename in place of the macro and its argument. The value of include (its replacement text) is the contents of the file. If needed, the contents can be captured in definitions and so on.

A fatal error occurs if the file named in include cannot be accessed. To get some control over this situation, the alternate form sinclude (``silent include'') can be used. This built-in says nothing and continues if the file named cannot be accessed.


Next topic: Diversions
Previous topic: Arithmetic built-ins

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004