Permalink
Browse files

a few entries in IO

  • Loading branch information...
1 parent f4d12f3 commit 4774f9363471ca87bf6c0b61b0b0777388cff584 @szabgab szabgab committed Mar 19, 2013
Showing with 40 additions and 0 deletions.
  1. +40 −0 lib/IO.pod
View
@@ -6,6 +6,46 @@
=head1 Methods
+=head2 get
+
+Reads a single line from the input stream (usually the Standard Input or a file).
+
+Read one line from the standard input:
+
+ $*IN.get;
+
+Read one line from a file:
+
+ my $fh = open 'filename';
+ my $line = $fh.get;
+
+
+=head2 getc
+
+Read a single character from the input stream.
+
+=head2 eof
+
+Returns L<Bool::True> if the read operations have exhausted the content of the file.
+
+=head2 lines
+
+=head2 read
+
+=head2 write
+
+=head2 seek
+
+=head2 tell
+
+=head2 slurp
+
+=head2 close
+
+Will close a previously opened filehandle.
+
+ $fh.close;
+
=head2 dir
sub dir Cool $path = '.', Mu :$test = none('.', '..')

0 comments on commit 4774f93

Please sign in to comment.