GIMP: ReplaceInFile
I don't know if it's like this for all the PortableApps.com Apps, but this is what i found in part of the GIMP ReplaceInFile file.
IfFileExists $2 +1 RIF_error ; knock-knock
FileOpen $R0 $2 "r" ; open the door
GetTempFileName $R2 ; who's new?
FileOpen $R1 $R2 "w" ; the escape, please!
RIF_loop: ; round'n'round we go
FileRead $R0 $R3 ; read one line
IfErrors RIF_leaveloop ; enough is enough
RIF_sar: ; sar - search and replace
- Read more about GIMP: ReplaceInFile
- 1 comment
- Log in or register to post comments