#28: Update 40_file_ops.pir
-------------------------+--------------------------------------------------
 Reporter:  whiteknight  |       Owner:     
     Type:  todo         |      Status:  new
 Priority:  trivial      |   Milestone:     
Component:  docs         |     Version:     
 Severity:  low          |    Keywords:     
     Lang:               |       Patch:     
 Platform:               |  
-------------------------+--------------------------------------------------

Comment(by jkeenan):

 Here's the file's code in its entirety:
 {{{
 .sub main :main
     .local pmc fileout, filein

     fileout = open '40_file_ops_data.txt', 'w'
     print fileout, "The quick brown fox jumps over the lazy dog.\n"
     close fileout

     filein = open '40_file_ops_data.txt', 'r'
     $S0 = readline filein
     say $S0
     close filein

     # Be nice and remove the temporary file we created.
     $P1 = new 'OS'
     $P1.'rm'('40_file_ops_data.txt')
 .end
 }}}


 Where in the source code would we find the current IO functionality that
 would govern this example?

 Thank you very much.[[BR]]
 kid51

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/28#comment:2>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to