Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Nasal library/io
(view source)
Revision as of 13:34, 1 November 2016
296 bytes added
,
13:34, 1 November 2016
→Functions
:
Doc tell()
Line 335:
Line 335:
=== tell(filehandle) ===
=== tell(filehandle) ===
−
Returns the current
seek
position of the
filehandle
.
+
{{Nasal doc
+
|syntax = io.tell(file);
+
|text =
Returns the current
pointer
position of the
file.
+
|param1 = file
+
|param1text = File object as returned by {{func link|open}}.
+
|example1 = var path = getprop("/sim/fg-root") ~ '/Nasal/geo.nas';
+
var file = io.open(path);
+
io.seek(file, 2, io.SEEK_SET);
+
print(io.tell(file)); # prints "2"
+
io
.
close(file);
+
}}
=== write(filehandle, str) ===
=== write(filehandle, str) ===
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