EXCHG
Syntax |
EXCHG device_file,old$,new$ |
Location |
ATARI_REXT |
This command creates a Job which opens a channel to the specified file and then works through the file, replacing every occurrence of old$ with new$. The search for old$ is case independent. Both old$ and new$ must be the same length.
Example
EXCHG flp1_Task_obj,'mdv','flp'
will replace all references to mdv1_ or mdv2_ to flp1_ and flp2_ respectively in the file flp1_task_obj.
NOTE
CHR$(0) cannot be replaced!
CROSS-REFERENCE
See also CONVERT.