Padding records

Pipelines v1.6

 

.* Example by TenFiftyTwo(c).

Home

 
.* The following pipeline reads the file: example.txt and for each input record, it produces
.* an output record that is at least 95 bytes long. If the input record is more than 95 bytes
.* long, the output record is unchanged.
 
pipe < &installdrive:\&installpath\Examples\Input\example.txt .* Read input file.
     | pad 95 .                                               .* Pad the record with periods.
     | cons                                                   .* Display on the console.