[Gretl-users] Quotation marks (" ") and string manipulation

Henrique Andrade henrique.coelho at gmail.com
Mon May 18 15:17:00 EDT 2015


Dear Gretl Community,

How can I use quotation marks inside a Gretl function that deals with
strings? Suppose a I have a text file like this one:

<text file>
O meu nome é "Severino",
como não tenho outro de pia.
Como há muitos "Severinos",
que é santo de romaria,
deram então de me chamar
"Severino de Maria".
<text file>

Now I would like to use readfile and strsub functions to read the file and
replace the quotation marks (" ") with asterisks (* *):

<hansl>
string Texto = readfile("Morte e Vida SeverinaSeverino.txt")
strinf Novo_Texto = strsub(Texto, """, "*")
<hansl>

Best regards,
Henrique
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wfu.edu/pipermail/gretl-users/attachments/20150518/49c1ff50/attachment.html>


More information about the Gretl-users mailing list