1 Parse Arg infile outfile
2 Call Stream outfile
, 'C', 'OPEN WRITE REPLACE'
4 Do While Lines( infile
) > 0
5 line = Linein( infile
)
7 When Word( line, 1 ) = 'LIBRARY' Then Call Lineout outfile
, 'LIBRARY' Word( line, 2 )
8 When Word( line, 1 ) = 'EXPORTS' Then
12 Call Lineout outfile
, 'EXPORTS'
13 Call Lineout outfile
, Word( line, 2 )
16 Else Call Lineout outfile
, Word( line, 2 )
21 Call Lineout outfile
, 'SECTION'
22 Call Lineout outfile
, 'DATA SHARED'
23 Call Stream outfile
, 'C', 'CLOSE'