loadFile: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fixed syntax)
No edit summary
Line 29: Line 29:
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
In Armed Assault, the 'loadfile' command must be preceded by the 'compile' command to work.
Ex OFP 1.96:  _falarmEvent = loadfile ("syswarn\falarmEvent.sqf")
<BR>
Ex ArmA 1.0:  _falarmEvent = compile loadfile ("syswarn\falarmEvent.sqf")


<!-- Note Section END -->
<!-- Note Section END -->

Revision as of 08:37, 28 November 2006

Hover & click on the images for description

Description

Description:
Return content of given filename.
Groups:
Uncategorised

Syntax

Syntax:
loadFile filename
Parameters:
filename: String
Return Value:
String

Examples

Example 1:
loadFile "myFunction.sqf"

Additional Information

See also:
See also needed

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

In Armed Assault, the 'loadfile' command must be preceded by the 'compile' command to work. Ex OFP 1.96: _falarmEvent = loadfile ("syswarn\falarmEvent.sqf")
Ex ArmA 1.0: _falarmEvent = compile loadfile ("syswarn\falarmEvent.sqf")

Bottom Section