X7ROOT File Manager
Current Path:
/opt/alt/ruby18/share/ri/1.8/system/IO
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
IO
/
📄
%3c%3c-i.yaml
(560 B)
ðŸ“
..
📄
binmode-i.yaml
(383 B)
📄
block_scanf-i.yaml
(201 B)
📄
bytes-i.yaml
(568 B)
📄
cdesc-IO.yaml
(7.74 KB)
📄
chars-i.yaml
(617 B)
📄
close-i.yaml
(612 B)
📄
close_read-i.yaml
(720 B)
📄
close_write-i.yaml
(767 B)
📄
closed%3f-i.yaml
(689 B)
📄
each-i.yaml
(815 B)
📄
each_byte-i.yaml
(637 B)
📄
each_char-i.yaml
(625 B)
📄
each_line-i.yaml
(825 B)
📄
eof%3f-i.yaml
(1.15 KB)
📄
eof-i.yaml
(1.15 KB)
📄
fcntl-i.yaml
(665 B)
📄
fileno-i.yaml
(470 B)
📄
flush-i.yaml
(598 B)
📄
for_fd-c.yaml
(259 B)
📄
foreach-c.yaml
(673 B)
📄
fsync-i.yaml
(591 B)
📄
getbyte-i.yaml
(458 B)
📄
getc-i.yaml
(452 B)
📄
gets-i.yaml
(895 B)
📄
inspect-i.yaml
(269 B)
📄
ioctl-i.yaml
(586 B)
📄
isatty-i.yaml
(525 B)
📄
lineno%3d-i.yaml
(748 B)
📄
lineno-i.yaml
(816 B)
📄
lines-i.yaml
(679 B)
📄
new-c.yaml
(655 B)
📄
open-c.yaml
(599 B)
📄
pid-i.yaml
(712 B)
📄
pipe-c.yaml
(1.27 KB)
📄
popen-c.yaml
(2.03 KB)
📄
pos%3d-i.yaml
(432 B)
📄
pos-i.yaml
(475 B)
📄
print-i.yaml
(902 B)
📄
printf-i.yaml
(384 B)
📄
putc-i.yaml
(600 B)
📄
puts-i.yaml
(787 B)
📄
read-c.yaml
(782 B)
📄
read-i.yaml
(974 B)
📄
read_nonblock-i.yaml
(999 B)
📄
readbyte-i.yaml
(321 B)
📄
readbytes-i.yaml
(473 B)
📄
readchar-i.yaml
(321 B)
📄
readline-i.yaml
(331 B)
📄
readlines-c.yaml
(537 B)
📄
readlines-i.yaml
(695 B)
📄
readpartial-i.yaml
(3.72 KB)
📄
reopen-i.yaml
(749 B)
📄
rewind-i.yaml
(549 B)
📄
scanf-i.yaml
(1.24 KB)
📄
seek-i.yaml
(1.01 KB)
📄
select-c.yaml
(323 B)
📄
soak_up_spaces-i.yaml
(179 B)
📄
stat-i.yaml
(542 B)
📄
sync%3d-i.yaml
(630 B)
📄
sync-i.yaml
(544 B)
📄
sysopen-c.yaml
(421 B)
📄
sysread-i.yaml
(649 B)
📄
sysseek-i.yaml
(624 B)
📄
syswrite-i.yaml
(614 B)
📄
tell-i.yaml
(477 B)
📄
to_i-i.yaml
(214 B)
📄
to_io-i.yaml
(237 B)
📄
tty%3f-i.yaml
(521 B)
📄
ungetc-i.yaml
(828 B)
📄
write-i.yaml
(734 B)
📄
write_nonblock-i.yaml
(636 B)
Editing: cdesc-IO.yaml
--- !ruby/object:RI::ClassDescription attributes: [] class_methods: - !ruby/object:RI::MethodSummary name: for_fd - !ruby/object:RI::MethodSummary name: foreach - !ruby/object:RI::MethodSummary name: new - !ruby/object:RI::MethodSummary name: new - !ruby/object:RI::MethodSummary name: open - !ruby/object:RI::MethodSummary name: pipe - !ruby/object:RI::MethodSummary name: popen - !ruby/object:RI::MethodSummary name: read - !ruby/object:RI::MethodSummary name: readlines - !ruby/object:RI::MethodSummary name: select - !ruby/object:RI::MethodSummary name: sysopen comment: - !ruby/struct:SM::Flow::P body: Class <tt>IO</tt> is the basis for all input and output in Ruby. An I/O stream may be <em>duplexed</em> (that is, bidirectional), and so may use more than one native operating system stream. - !ruby/struct:SM::Flow::P body: Many of the examples in this section use class <tt>File</tt>, the only standard subclass of <tt>IO</tt>. The two classes are closely associated. - !ruby/struct:SM::Flow::P body: As used in this section, <em>portname</em> may take any of the following forms. - !ruby/object:SM::Flow::LIST contents: - !ruby/struct:SM::Flow::LI label: "*" body: A plain string represents a filename suitable for the underlying operating system. - !ruby/struct:SM::Flow::LI label: "*" body: A string starting with ``<tt>|</tt>'' indicates a subprocess. The remainder of the string following the ``<tt>|</tt>'' is invoked as a process with appropriate input/output channels connected to it. - !ruby/struct:SM::Flow::LI label: "*" body: A string equal to ``<tt>|-</tt>'' will create another Ruby instance as a subprocess. type: :BULLET - !ruby/struct:SM::Flow::P body: "Ruby will convert pathnames between different operating system conventions if possible. For instance, on a Windows system the filename ``<tt>/gumby/ruby/test.rb</tt>'' will be opened as ``<tt>\\gumby\\ruby\\test.rb</tt>''. When specifying a Windows-style filename in a Ruby string, remember to escape the backslashes:" - !ruby/struct:SM::Flow::VERB body: " "c:\\gumby\\ruby\\test.rb"\n" - !ruby/struct:SM::Flow::P body: Our examples here will use the Unix-style forward slashes; <tt>File::SEPARATOR</tt> can be used to get the platform-specific separator character. - !ruby/struct:SM::Flow::P body: I/O ports may be opened in any one of several different modes, which are shown in this section as <em>mode</em>. The mode may either be a Fixnum or a String. If numeric, it should be one of the operating system specific constants (O_RDONLY, O_WRONLY, O_RDWR, O_APPEND and so on). See man open(2) for more information. - !ruby/struct:SM::Flow::P body: If the mode is given as a String, it must be one of the values listed in the following table. - !ruby/struct:SM::Flow::VERB body: " Mode | Meaning\n -----+--------------------------------------------------------\n "r" | Read-only, starts at beginning of file (default mode).\n -----+--------------------------------------------------------\n "r+" | Read-write, starts at beginning of file.\n -----+--------------------------------------------------------\n "w" | Write-only, truncates existing file\n | to zero length or creates a new file for writing.\n -----+--------------------------------------------------------\n "w+" | Read-write, truncates existing file to zero length\n | or creates a new file for reading and writing.\n -----+--------------------------------------------------------\n "a" | Write-only, starts at end of file if file exists,\n | otherwise creates a new file for writing.\n -----+--------------------------------------------------------\n "a+" | Read-write, starts at end of file if file exists,\n | otherwise creates a new file for reading and\n | writing.\n -----+--------------------------------------------------------\n "b" | (DOS/Windows only) Binary file mode (may appear with\n | any of the key letters listed above).\n" - !ruby/struct:SM::Flow::P body: The global constant ARGF (also accessible as $<) provides an IO-like stream which allows access to all files mentioned on the command line (or STDIN if no files are mentioned). ARGF provides the methods <tt>#path</tt> and <tt>#filename</tt> to access the name of the file currently being read. constants: - !ruby/object:RI::Constant comment: name: SEEK_SET value: INT2FIX(SEEK_SET) - !ruby/object:RI::Constant comment: name: SEEK_CUR value: INT2FIX(SEEK_CUR) - !ruby/object:RI::Constant comment: name: SEEK_END value: INT2FIX(SEEK_END) full_name: IO includes: - !ruby/object:RI::IncludedModule name: File::Constants - !ruby/object:RI::IncludedModule name: Enumerable instance_methods: - !ruby/object:RI::MethodSummary name: "<<" - !ruby/object:RI::MethodSummary name: binmode - !ruby/object:RI::MethodSummary name: block_scanf - !ruby/object:RI::MethodSummary name: bytes - !ruby/object:RI::MethodSummary name: chars - !ruby/object:RI::MethodSummary name: close - !ruby/object:RI::MethodSummary name: close_read - !ruby/object:RI::MethodSummary name: close_write - !ruby/object:RI::MethodSummary name: closed? - !ruby/object:RI::MethodSummary name: each - !ruby/object:RI::MethodSummary name: each_byte - !ruby/object:RI::MethodSummary name: each_char - !ruby/object:RI::MethodSummary name: each_line - !ruby/object:RI::MethodSummary name: eof - !ruby/object:RI::MethodSummary name: eof? - !ruby/object:RI::MethodSummary name: fcntl - !ruby/object:RI::MethodSummary name: fileno - !ruby/object:RI::MethodSummary name: flush - !ruby/object:RI::MethodSummary name: fsync - !ruby/object:RI::MethodSummary name: getbyte - !ruby/object:RI::MethodSummary name: getc - !ruby/object:RI::MethodSummary name: gets - !ruby/object:RI::MethodSummary name: inspect - !ruby/object:RI::MethodSummary name: ioctl - !ruby/object:RI::MethodSummary name: isatty - !ruby/object:RI::MethodSummary name: lineno - !ruby/object:RI::MethodSummary name: lineno= - !ruby/object:RI::MethodSummary name: lines - !ruby/object:RI::MethodSummary name: pid - !ruby/object:RI::MethodSummary name: pos - !ruby/object:RI::MethodSummary name: pos= - !ruby/object:RI::MethodSummary name: print - !ruby/object:RI::MethodSummary name: printf - !ruby/object:RI::MethodSummary name: putc - !ruby/object:RI::MethodSummary name: puts - !ruby/object:RI::MethodSummary name: read - !ruby/object:RI::MethodSummary name: read_nonblock - !ruby/object:RI::MethodSummary name: readbyte - !ruby/object:RI::MethodSummary name: readbytes - !ruby/object:RI::MethodSummary name: readchar - !ruby/object:RI::MethodSummary name: readline - !ruby/object:RI::MethodSummary name: readlines - !ruby/object:RI::MethodSummary name: readpartial - !ruby/object:RI::MethodSummary name: reopen - !ruby/object:RI::MethodSummary name: rewind - !ruby/object:RI::MethodSummary name: scanf - !ruby/object:RI::MethodSummary name: seek - !ruby/object:RI::MethodSummary name: soak_up_spaces - !ruby/object:RI::MethodSummary name: stat - !ruby/object:RI::MethodSummary name: sync - !ruby/object:RI::MethodSummary name: sync= - !ruby/object:RI::MethodSummary name: sysread - !ruby/object:RI::MethodSummary name: sysseek - !ruby/object:RI::MethodSummary name: syswrite - !ruby/object:RI::MethodSummary name: tell - !ruby/object:RI::MethodSummary name: to_i - !ruby/object:RI::MethodSummary name: to_io - !ruby/object:RI::MethodSummary name: tty? - !ruby/object:RI::MethodSummary name: ungetc - !ruby/object:RI::MethodSummary name: write - !ruby/object:RI::MethodSummary name: write_nonblock name: IO superclass:
Upload File
Create Folder