A platform combines multiple tutorials, projects, documentations, questions and answers for developers
  • Home (current)
  • Documentations
  • About
  • Login
  1. Home
  2. Documentations
  3. Haxe Lua
  4. FileHandle

FileHandle

package lua

extends UserData

Available on lua

Methods

close():Void

flush():Void

read(arg:Rest<EitherType<String, Int>>):String

seek(arg:String, pos:Int):Void

seek():Int

seek(arg:String):Int

write(str:String):Void

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/lua/FileHandle.html

lua
AnyTable
Bit
Bit.arshift()
Bit.band()
Bit.bnot()
Bit.bor()
Bit.bxor()
Bit.lshift()
Bit.mod()
Bit.rshift()
CollectGarbageOption
CollectGarbageOption.Collect
CollectGarbageOption.Count
CollectGarbageOption.Restart
CollectGarbageOption.SetPause
CollectGarbageOption.SetStepMul
CollectGarbageOption.Step
CollectGarbageOption.Stop
Coroutine
Coroutine.create()
Coroutine.resume()
Coroutine.running()
Coroutine.status()
Coroutine.wrap()
Coroutine.yield()
CoroutineResume
CoroutineResume.result
CoroutineResume.success
CoroutineRunning
CoroutineRunning.coroutine
CoroutineRunning.status
CoroutineState
CoroutineState.Dead
CoroutineState.Normal
CoroutineState.Running
CoroutineState.Suspended
DateType
DateType.day
DateType.hour
DateType.isdst
DateType.min
DateType.month
DateType.sec
DateType.wday
DateType.yday
DateType.year
Debug
Debug.debug()
Debug.gethook()
Debug.getinfo()
Debug.getlocal()
Debug.getmetatable()
Debug.getregistry()
Debug.getupvalue()
Debug.getuservalue()
Debug.sethook()
Debug.setlocal()
Debug.setmetatable()
Debug.setupvalue()
Debug.setuservalue()
Debug.traceback()
Debug.upvalueid()
Debug.upvaluejoin()
DebugInfo
DebugInfo.currentline
DebugInfo.func
DebugInfo.istailcall
DebugInfo.isvararg
DebugInfo.lastlinedefined
DebugInfo.linedefined
DebugInfo.name
DebugInfo.namewhat
DebugInfo.nparams
DebugInfo.nups
DebugInfo.short_src
DebugInfo.source
DebugInfo.what
FileHandle
FileHandle.close()
FileHandle.flush()
FileHandle.read()
FileHandle.seek()
FileHandle.write()
HaxeIterator
HaxeIterator.hasNext()
HaxeIterator.next()
IPairsResult
IPairsResult.index
IPairsResult.next()
IPairsResult.table
Io
Io.close()
Io.flush()
Io.input()
Io.lines()
Io.open()
Io.output()
Io.popen()
Io.read()
Io.stderr
Io.stdin
Io.stdout
Io.tmpfile()
Io.type()
Io.write()
IoType
IoType.ClosedFile
IoType.File
IoType.NotAFile
IoType.toString()
Lib
Lib.fillArray()
Lib.isShellAvailable()
Lib.patternQuote()
Lib.print()
Lib.println()
LoadResult
LoadResult.func
LoadResult.message
LocaleCategory
LocaleCategory.All
LocaleCategory.Collate
LocaleCategory.Ctype
LocaleCategory.Monetary
LocaleCategory.Numeric
LocaleCategory.Time
Lua
Lua._VERSION
Lua.arg
Lua.assert()
Lua.collectgarbage()
Lua.dofile()
Lua.error()
Lua.getmetatable()
Lua.ipairs()
Lua.load()
Lua.loadfile()
Lua.next()
Lua.pairs()
Lua.pcall()
Lua.print()
Lua.rawequal()
Lua.rawget()
Lua.rawset()
Lua.require()
Lua.select()
Lua.setfenv()
Lua.setmetatable()
Lua.tonumber()
Lua.tostring()
Lua.type()
Lua.xpcall()
Math
Math.abs()
Math.acos()
Math.asin()
Math.atan()
Math.atan2()
Math.ceil()
Math.cos()
Math.cosh()
Math.deg()
Math.exp()
Math.floor()
Math.fmod()
Math.frexp()
Math.huge
Math.ldexp()
Math.log()
Math.log10()
Math.max()
Math.min()
Math.modf()
Math.pi
Math.pow()
Math.rad()
Math.random()
Math.randomseed()
Math.sin()
Math.sinh()
Math.sqrt()
Math.tan()
Math.tanh()
MathFrexpResult
MathFrexpResult.e
MathFrexpResult.m
NativeIterator
NativeIterator.fromF()
NativeIterator.toIterator()
NativeStringTools
NativeStringTools.byte()
NativeStringTools.char()
NativeStringTools.dump()
NativeStringTools.find()
NativeStringTools.format()
NativeStringTools.gmatch()
NativeStringTools.gsub()
NativeStringTools.len()
NativeStringTools.lower()
NativeStringTools.match()
NativeStringTools.rep()
NativeStringTools.sub()
NativeStringTools.upper()
NextResult
NextResult.index
NextResult.value
Os
Os.clock()
Os.date()
Os.difftime()
Os.execute()
Os.exit()
Os.getenv()
Os.remove()
Os.rename()
Os.setlocale()
Os.time()
Os.tmpname()
OsExecute
OsExecute.output
OsExecute.status
OsExecute.success
OsSuccess
OsSuccess.message
OsSuccess.success
PCallResult
PCallResult.status
PCallResult.value
Package
Package.config
Package.cpath
Package.loaded
Package.loadlib()
Package.path
Package.preload
Package.searchers()
Package.searchpath()
PairTools
PairTools.copy()
PairTools.ipairsConcat()
PairTools.ipairsEach()
PairTools.ipairsExist()
PairTools.ipairsFold()
PairTools.ipairsIterator()
PairTools.ipairsMap()
PairTools.pairsEach()
PairTools.pairsExist()
PairTools.pairsFold()
PairTools.pairsIterator()
PairTools.pairsMap()
PairTools.pairsMerge()
PairsResult
PairsResult.index
PairsResult.next()
PairsResult.table
Result
Result.message
Result.result
StringFind
StringFind.begin
StringFind.end
StringSub
StringSub.count
StringSub.match
Table
Table.concat()
Table.create()
Table.fromArray()
Table.fromDynamic()
Table.fromMap()
Table.insert()
Table.remove()
Table.sort()
Table.toArray()
Table.toMap()
Table.toObject()
TableTools
TableTools.maxn()
TableTools.pack()
TableTools.unpack()
Thread
Time
TimeParam
TimeParam.day
TimeParam.hour
TimeParam.isdst
TimeParam.min
TimeParam.month
TimeParam.sec
TimeParam.year
UserData
lua.lib.lrexlib
lrexRex
lrexRex.count()
lrexRex.create()
lrexRex.exec()
lrexRex.find()
lrexRex.flags()
lrexRex.gmatch()
lrexRex.gsub()
lrexRex.match()
lrexRex.split()
lrexRex.tfind()
lua.lib.luasocket
luasocket.Socket
luasocket.Socket._DEBUG
luasocket.Socket._VERSION
luasocket.Socket.bind()
luasocket.Socket.close()
luasocket.Socket.connect()
luasocket.Socket.getsockname()
luasocket.Socket.gettime()
luasocket.Socket.select()
luasocket.Socket.settimeout()
luasocket.Socket.tcp()
luasocket.socket.AddrInfo
luasocket.socket.AddrInfo.address
luasocket.socket.AddrInfo.port
luasocket.socket.Dns
luasocket.socket.Dns.gethostname()
luasocket.socket.ReceivePattern
luasocket.socket.ReceivePattern.All
luasocket.socket.ReceivePattern.Line
luasocket.socket.SelectResult
luasocket.socket.SelectResult.read
luasocket.socket.SelectResult.write
luasocket.socket.ShutdownMode
luasocket.socket.ShutdownMode.Both
luasocket.socket.ShutdownMode.Receive
luasocket.socket.ShutdownMode.Send
luasocket.socket.TcpClient
luasocket.socket.TcpClient.getpeername()
luasocket.socket.TcpClient.receive()
luasocket.socket.TcpClient.send()
luasocket.socket.TcpClient.setoption()
luasocket.socket.TcpClient.shutdown()
luasocket.socket.TcpMaster
luasocket.socket.TcpMaster.bind()
luasocket.socket.TcpMaster.connect()
luasocket.socket.TcpMaster.listen()
luasocket.socket.TcpOption
luasocket.socket.TcpOption.KeepAlive
luasocket.socket.TcpOption.Linger
luasocket.socket.TcpOption.ReuseAddress
luasocket.socket.TcpOption.TcpNoDelay
luasocket.socket.TcpServer
luasocket.socket.TcpServer.accept()
luasocket.socket.TcpServer.setoption()
luasocket.socket.TimeoutMode
luasocket.socket.TimeoutMode.Block
luasocket.socket.TimeoutMode.Total
lua.lib.luautf8
luautf8.StringCodePoint
luautf8.StringCodePoint.codepoint
luautf8.StringCodePoint.position
luautf8.StringFind
luautf8.StringFind.begin
luautf8.StringFind.end
luautf8.StringSub
luautf8.StringSub.count
luautf8.StringSub.match
luautf8.Utf8
luautf8.Utf8.byte()
luautf8.Utf8.char()
luautf8.Utf8.charCodeAt()
luautf8.Utf8.codes()
luautf8.Utf8.find()
luautf8.Utf8.gmatch()
luautf8.Utf8.gsub()
luautf8.Utf8.len()
luautf8.Utf8.lower()
luautf8.Utf8.match()
luautf8.Utf8.sub()
luautf8.Utf8.upper()
lua.lib.luv
luv.Async
luv.Async.new_async()
luv.Async.send()
luv.Check
luv.Check.new_check()
luv.Check.start()
luv.Check.stop()
luv.CpuInfo
luv.CpuInfo.model
luv.CpuInfo.speed
luv.CpuInfo.times
luv.CpuTimes
luv.CpuTimes.idle
luv.CpuTimes.irq
luv.CpuTimes.sys
luv.CpuTimes.user
luv.Handle
luv.Handle.close()
luv.Handle.fileno()
luv.Handle.has_ref()
luv.Handle.is_active()
luv.Handle.is_closing()
luv.Handle.recv_buffer_size()
luv.Handle.ref()
luv.Handle.send_buffer_size()
luv.Handle.unref()
luv.Idle
luv.Idle.new_idle()
luv.Idle.start()
luv.Idle.stop()
luv.Loop
luv.Loop.backend_fd()
luv.Loop.backend_timeout()
luv.Loop.loop_alive()
luv.Loop.loop_close()
luv.Loop.now()
luv.Loop.run()
luv.Loop.stop()
luv.Loop.update_time()
luv.Loop.walk()
luv.LuvSpawn
luv.LuvSpawn.handle
luv.LuvSpawn.pid
luv.MicroTimeStamp
luv.MicroTimeStamp.sec
luv.MicroTimeStamp.usec
luv.Misc
luv.Misc.chdir()
luv.Misc.cpu_info()
luv.Misc.cwd()
luv.Misc.exepath()
luv.Misc.get_free_memory()
luv.Misc.get_process_title()
luv.Misc.get_total_memory()
luv.Misc.getgid()
luv.Misc.getpid()
luv.Misc.getrusage()
luv.Misc.gettimeofday()
luv.Misc.getuid()
luv.Misc.guess_handle()
luv.Misc.hrtime()
luv.Misc.interface_addresses()
luv.Misc.loadavg()
luv.Misc.print_active_handles()
luv.Misc.print_all_handles()
luv.Misc.resident_set_memory()
luv.Misc.set_process_title()
luv.Misc.setgid()
luv.Misc.setuid()
luv.Misc.uptime()
luv.Misc.version()
luv.Misc.version_string()
luv.Os
luv.Os.environ()
luv.Os.get_passwd()
luv.Os.getenv()
luv.Os.gethostname()
luv.Os.getpid()
luv.Os.getppid()
luv.Os.getpriority()
luv.Os.homedir()
luv.Os.setenv()
luv.Os.setpriority()
luv.Os.tmpdir()
luv.Os.uname()
luv.Os.unsetenv()
luv.Pipe
luv.Pipe.bind()
luv.Pipe.connect()
luv.Pipe.getsockname()
luv.Pipe.new_pipe()
luv.Pipe.open()
luv.Pipe.pending_count()
luv.Pipe.pending_instances()
luv.Pipe.pending_type()
luv.Poll
luv.Poll.new_poll()
luv.Poll.start()
luv.Poll.stop()
luv.Prepare
luv.Prepare.new_prepare()
luv.Prepare.start()
luv.Prepare.stop()
luv.Process
luv.Process.disable_stdio_inheritance()
luv.Process.kill()
luv.Process.spawn()
luv.ProcessOptions
luv.ProcessOptions.args
luv.ProcessOptions.stdio
luv.Request
luv.Request.cancel()
luv.ResourceUsage
luv.ResourceUsage.idrss
luv.ResourceUsage.inblock
luv.ResourceUsage.isrss
luv.ResourceUsage.ixrss
luv.ResourceUsage.majflt
luv.ResourceUsage.maxrss
luv.ResourceUsage.minflt
luv.ResourceUsage.msgrcv
luv.ResourceUsage.msgsnd
luv.ResourceUsage.nivcsw
luv.ResourceUsage.nsignals
luv.ResourceUsage.nswap
luv.ResourceUsage.nvcsw
luv.ResourceUsage.oublock
luv.ResourceUsage.stime
luv.ResourceUsage.utime
luv.Signal
luv.Signal.new_signal()
luv.Signal.start()
luv.Signal.stop()
luv.Stream
luv.Stream.accept()
luv.Stream.is_readable()
luv.Stream.is_writable()
luv.Stream.listen()
luv.Stream.read_start()
luv.Stream.read_stop()
luv.Stream.set_blocking()
luv.Stream.shutdown()
luv.Stream.try_write()
luv.Stream.write()
luv.Stream.write2()
luv.StreamData
luv.Thread
luv.Thread.equal()
luv.Thread.join()
luv.Thread.new_thread()
luv.Thread.self()
luv.Thread.sleep()
luv.TimeOfDay
luv.TimeOfDay.microseconds
luv.TimeOfDay.seconds
luv.Timer
luv.Timer.again()
luv.Timer.get_repeat()
luv.Timer.new_timer()
luv.Timer.set_repeat()
luv.Timer.start()
luv.Timer.stop()
luv.Tty
luv.Tty.get_winsize()
luv.Tty.new_tty()
luv.Tty.reset_mode()
luv.Tty.set_mode()
luv.Uname
luv.Uname.machine
luv.Uname.release
luv.Uname.sysname
luv.Uname.version
luv.WidthHeight
luv.WidthHeight.height
luv.WidthHeight.width
luv.Work
luv.Work.new_work()
luv.Work.queue_work()
luv.fs.FileDescriptor
luv.fs.FileSystem
luv.fs.FileSystem.access()
luv.fs.FileSystem.chmod()
luv.fs.FileSystem.chown()
luv.fs.FileSystem.close()
luv.fs.FileSystem.closedir()
luv.fs.FileSystem.fchmod()
luv.fs.FileSystem.fchown()
luv.fs.FileSystem.fdatasync()
luv.fs.FileSystem.fstat()
luv.fs.FileSystem.fsync()
luv.fs.FileSystem.ftruncate()
luv.fs.FileSystem.futime()
luv.fs.FileSystem.lchown()
luv.fs.FileSystem.link()
luv.fs.FileSystem.lstat()
luv.fs.FileSystem.mkdir()
luv.fs.FileSystem.mkdtemp()
luv.fs.FileSystem.open()
luv.fs.FileSystem.opendir()
luv.fs.FileSystem.read()
luv.fs.FileSystem.readdir()
luv.fs.FileSystem.readlink()
luv.fs.FileSystem.realpath()
luv.fs.FileSystem.rename()
luv.fs.FileSystem.rmdir()
luv.fs.FileSystem.scandir()
luv.fs.FileSystem.scandir_next()
luv.fs.FileSystem.sendfile()
luv.fs.FileSystem.stat()
luv.fs.FileSystem.statfs()
luv.fs.FileSystem.symlink()
luv.fs.FileSystem.unlink()
luv.fs.FileSystem.utime()
luv.fs.FileSystem.write()
luv.fs.FileSystemEvent
luv.fs.FileSystemEvent.getpath()
luv.fs.FileSystemEvent.new_fs_event()
luv.fs.FileSystemEvent.start()
luv.fs.FileSystemEvent.stop()
luv.fs.FileSystemPoll
luv.fs.FileSystemPoll.getpath()
luv.fs.FileSystemPoll.new_fs_poll()
luv.fs.FileSystemPoll.start()
luv.fs.FileSystemPoll.stop()
luv.fs.NameType
luv.fs.NameType.name
luv.fs.NameType.type
luv.fs.Open
luv.fs.Open.Append
luv.fs.Open.AppendNewFile
luv.fs.Open.ReadOnly
luv.fs.Open.ReadOnlySync
luv.fs.Open.ReadWrite
luv.fs.Open.ReadWriteAppend
luv.fs.Open.ReadWriteAppendNewFile
luv.fs.Open.ReadWriteSync
luv.fs.Open.ReadWriteTruncate
luv.fs.Open.ReadWriteTruncateNewFile
luv.fs.Open.WriteNewFile
luv.fs.Open.WriteOnly
luv.fs.ScanDirMarker
luv.fs.ScandirNext
luv.fs.ScandirNext.name
luv.fs.ScandirNext.type
luv.fs.StartOptions
luv.fs.StartOptions.recursive
luv.fs.StartOptions.stat
luv.fs.StartOptions.watch_entry
luv.fs.Stat
luv.fs.Stat.atime
luv.fs.Stat.birthtime
luv.fs.Stat.blksize
luv.fs.Stat.blocks
luv.fs.Stat.ctime
luv.fs.Stat.dev
luv.fs.Stat.flags
luv.fs.Stat.gen
luv.fs.Stat.gid
luv.fs.Stat.ino
luv.fs.Stat.mode
luv.fs.Stat.mtime
luv.fs.Stat.nlink
luv.fs.Stat.rdev
luv.fs.Stat.size
luv.fs.Stat.type
luv.fs.Stat.uid
luv.fs.StatFs
luv.fs.StatFs.bavail
luv.fs.StatFs.bfree
luv.fs.StatFs.blocks
luv.fs.StatFs.bsize
luv.fs.StatFs.ffree
luv.fs.StatFs.files
luv.fs.StatFs.type
luv.fs.TimeStamp
luv.fs.TimeStamp.nsec
luv.fs.TimeStamp.sec
luv.net.AddrInfo
luv.net.AddrInfo.addr
luv.net.AddrInfo.family
luv.net.AddrInfo.ip
luv.net.AddrInfo.port
luv.net.AddrInfo.socktype
luv.net.Dns
luv.net.Dns.getaddrinfo()
luv.net.Dns.getnameinfo()
luv.net.Tcp
luv.net.Tcp.bind()
luv.net.Tcp.connect()
luv.net.Tcp.getpeername()
luv.net.Tcp.getsockname()
luv.net.Tcp.keepalive()
luv.net.Tcp.new_tcp()
luv.net.Tcp.nodelay()
luv.net.Tcp.open()
luv.net.Tcp.simultaneous_accepts()
luv.net.Tcp.write_queue_size()
luv.net.Udp
luv.net.Udp.bind()
luv.net.Udp.getsockname()
luv.net.Udp.new_udp()
luv.net.Udp.open()
luv.net.Udp.recv_start()
luv.net.Udp.recv_stop()
luv.net.Udp.send()
luv.net.Udp.set_broadcast()
luv.net.Udp.set_membership()
luv.net.Udp.set_multicast_interface()
luv.net.Udp.set_multicast_loop()
luv.net.Udp.set_multicast_ttl()
luv.net.Udp.set_ttl()
luv.net.Udp.try_send()
Copyright ©2025 TypeError Powered By AnyPost, page cost 84ms.
Privacy Policy