help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Procedures and functions] Reference for unit 'pwumain' (#powtils_main)

FileOut

Declaration

Source position: pwumain.pas line 141

function FileOut(

  const fname: String

):errcode;

Notes

Outputs a file. Use this for outputting html snippets or text files.

Return value

Returns FILE_READ_ERR if not found, OK (1) if everything went okay.

In older versions of psp such as 1.5 and 1.6.0.0 this function did not return any value, it just showed a polite error in the web browser.

In versions 1.6.0.1 and above, return codes are used in addition to an error being shown (if warnings are on in your config). This offers you double the convenience as you can choose to handle the problem, and/or you can choose to be warned on screen.

See Also

TemplateOut





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505