Call of Duty 4: Scripting Reference - File::OpenFile: Difference between revisions
Jump to navigation
Jump to search
(New page: {{Function |Version=4 |Name=OpenFile( <filename>, <mode> ) |Module=File |Available |Summary=Open a file for reading, writing, or appending. If successful returns a file number,...) |
No edit summary |
||
Line 10: | Line 10: | ||
# <filename> The name of the file to open. | # <filename> The name of the file to open. | ||
# <mode> The file mode. Valid arguments are 'read', 'write' and 'append'. | # <mode> The file mode. Valid arguments are 'read', 'write' and 'append'. | ||
|Notes=Before opening a file, one should wait for the frame end: | |||
<pre>waittillframeend; | |||
openfile(...);</pre> | |||
Reading files on a listen server might work during match start up only, see [http://modsonline.com/Forums-top-162943-0.html here]. | |||
}} | }} |