Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (22 sloc) 0.319 kb
function read(var filename)
{
var file = new 'FileHandle';
say ("File: ", filename);
file.open(filename);
next:
var s= file.readline();
yield s;
goto next;
}
function main()
{
string filename = 'README';
var s= read(filename);
say(s);
while (s)
{
print('>> ', s);
s= read();
}
say("(End of file)");
}
Jump to Line
Something went wrong with that request. Please try again.