Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Nasal library/io
(view source)
Revision as of 12:46, 21 October 2016
275 bytes added
,
12:46, 21 October 2016
→open()
:
More doc
Line 110:
Line 110:
|param1text = Full path to the file as a string.
|param1text = Full path to the file as a string.
|param2 = mode
|param2 = mode
−
|param2text = Optional mode parameter. Defaults to "rb".
+
|param2text = Optional mode parameter
. See the table below
. Defaults to "rb".
|example1 =
|example1 =
}}
}}
+
+
{| class="wikitable"
+
! String !! Meaning
+
|-
+
| r || Open for input (reading) operations as a text file. The file must exist.
+
|-
+
| w || Creates a new file for output (writing) operations. If the file already exists, its contents will be cleared first.
+
|}
=== read(filehandle, buf, len) ===
=== read(filehandle, buf, len) ===
Red Leader
Administrators
2,726
edits
Navigation menu
Personal tools
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Village pump
Help
Portals
User
Developer
Wiki
FlightGear
Website
Forum
Mailing lists
Bug tracker
Source
Scenery
Liveries
Build server
Tools
Upload file
Special pages
Printable version