File class of PicoRuby

Singleton methods

chmod

File.chmod(Integer mode, *string) -> Integer

directory?

File.directory?(string) -> bool

exist?

File.exist?(string) -> bool

expand_path

File.expand_path(string, ?string) -> String

file?

File.file?(string) -> bool

new

File.new(string, ?string mode) -> VFS::file_t

open

File.open(string, ?string) -> VFS::file_t
File.open[T] (string, ?string) { (VFS::file_t) -> T } -> nil

rename

File.rename(string, string) -> 0
File.unlink(*string) -> Integer

utime

File.utime(Time atime, Time mtime, *string) -> Integer

Instance methods

close

instance.close() -> nil

each_line

instance.each_line() { (String) -> void } -> nil

eof?

instance.eof?() -> bool

expand

instance.expand(Integer size) -> Integer

fsync

instance.fsync() -> Integer

gets

instance.gets(*(Integer|String) args, ?chomp: bool) -> String?

path

instance.path() -> String

printf

instance.printf(String format, *String string) -> nil

putc

instance.putc(String | Integer ch) -> (String | Integer)

puts

instance.puts(*String string) -> nil

read

instance.read(?Integer length, ?String outbuf) -> String?

rewind

instance.rewind() -> Integer

seek

instance.seek(Integer offset, ?Integer whence) -> Integer

size

instance.size() -> Integer

tell

instance.tell() -> Integer

write

instance.write(*String string) -> Integer
Tags: