11.06.2014 Views

NetRexx Tutorial - The Rexx Language Association

NetRexx Tutorial - The Rexx Language Association

NetRexx Tutorial - The Rexx Language Association

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

import <strong>Rexx</strong>2Nrx.<strong>Rexx</strong>2RT.<strong>Rexx</strong>File<br />

class example3 uses <strong>Rexx</strong>File<br />

properties public static<br />

FD_F = <strong>Rexx</strong>File Null<br />

F = <strong>Rexx</strong> 'abc.def'<br />

n = int 0<br />

xx = <strong>Rexx</strong> ''<br />

method main(args=String[]) static<br />

arg=<strong>Rexx</strong>(args) -- program arguments as single string<br />

arg=arg -- avoid <strong>Net<strong>Rexx</strong></strong> warning<br />

F = 'abc.def'<br />

FD_F = <strong>Rexx</strong>File.FD(F).access('READ')<br />

n = 0<br />

Loop1()<br />

exit

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!