Quoter

Friends,

I am at my wits end, I know we can use quoter function to convert a file to one with quotes which I cam import in to a variable ...But How???

I want each line of .out file to be transported to .err enclosed in quotes..

DEF VAR err AS c.
DEF VAR out AS c.

ASSIGN
out = "d:\ITEMCIM02012009162215.out"
err = "d:\ITEMCIM02012009162215.err".
QUOTER INPUT VALUE (out) > OUTPUT VALUE (err).


TIA
 

jongpau

Member
As far as I know, the quoter function is for variables (so to put quotes around the contents of a variable). If you want to put quotes around the contents of a file you will have to do an os-command calling quoter.exe

Code:
OS-COMMAND SILENT VALUE("quoter.exe c:\temp\filein.txt > c:\temp\fileout.txt").

After you have done this you should be able to read the contents of the file using import.
 

tamhas

ProgressTalk.com Sponsor
If all one wants to do is import the whole line, then use

IMPORT UNFORMATTED lchVariable.

this will read entire lines from the current input source or stream into lchVariable where you can parse it in any way you want.
 
Many Thanks.

Quoter doesnt wont, But Import worked...13 yrs with Progress did not know this.

Funnily enough a program written by me in 2000 worked with quoter, now it doesnt!!
 
Top