# Method MasterObject()->compile_file()

Method compile_file

  `program compile_file(string filename, object|void handler, void|program p, void|object o)`

Description

  Compile the Pike code contained in the file filename into a program.

  This function will compile the file filename to a Pike program that can later be instantiated. It is the same as doing `<a style='font-family:courier;' href='../../predef_3A_3A/compile_string.html'>compile_string(<a style='font-family:courier;' href='../../predef_3A_3A/Stdio/read_file.html'>Stdio.read_file(<a style='font-family:courier;' href='../../predef_3A_3A/compile_file.html'>filename), <a style='font-family:courier;' href='../../predef_3A_3A/compile_file.html'>filename)`.

See also

  compile(), compile_string(), cpp()