Help automating a list of terms to find and replace
#1
Posted 24 June 2004 - 05:47 PM
Thanks
#2
Posted 24 June 2004 - 06:30 PM
loop, read, inputfile, outputfile
{
stringreplace
stringreplace
stringreplace
...
fileappend
}
#3
Posted 24 June 2004 - 07:49 PM
At the end of hte script you suggested using FileAppend.
Am I correct in assuming I should you the OutPutVar from the StringReplace function?
Thanks
#4
Posted 24 June 2004 - 08:57 PM
#5
Posted 24 June 2004 - 10:08 PM
;; 3U TELECOM Inc.,3U,235233,09116,x09116,PRE ;; line content of MyInput.csv
Loop, read, MyInput.csv, TheOutput.ini
{
StringSplit, Field, A_LoopReadLine, `,
IfInString, Field5, x
Field5 = %Field4%
IfInString, Field6, PRE
StringReplace, Field6, Field6, PRE, Preselection
IfInString, Field6, CBC
StringReplace, Field6, Field6, CBC, Call By Call
FileAppend, [%Field5%]`n`n`tCUSTNAME`t=%A_Space%%Field2%`n`tID`t`t=%A_Space%%Field3%`n`tTARIF`t=%A_Space%`n`tPRODTYPE=%A_Space%%Field6%`n`n
}
Please check AHK's command reference on the commands used above (marked bold)--> [more...]
#6
Guests
Posted 25 June 2004 - 03:41 PM
Thanks for being so generous with your time and your skills
ecrhone
#7
Posted 16 June 2013 - 12:47 AM
Guess what? I've done that today
;; 3U TELECOM Inc.,3U,235233,09116,x09116,PRE ;; line content of MyInput.csv
Please check AHK's command reference on the commands used above (marked bold)--> [more...]
please help me too




