1 # Copyright (C) 2007-2009, Parrot Foundation.
6 This example demonstrates basic file operations.
11 .local pmc fileout, filein
13 fileout = open '40_file_ops_data.txt', 'w'
14 print fileout, "The quick brown fox jumps over the lazy dog.\n"
17 filein = open '40_file_ops_data.txt', 'r'
22 # Be nice and remove the temporary file we created.
24 $P1.'rm'('40_file_ops_data.txt')
31 # vim: expandtab shiftwidth=4 ft=pir: