Replace caracters in a file

Find quick help here to get you started with Hollywood
Post Reply
papiosaur
Posts: 217
Joined: Fri Mar 31, 2023 1:34 pm

Replace caracters in a file

Post by papiosaur »

Hello,

i'm creating a gui to create a Dosdrivers but if i use Echo command from system i can't add (" ") to the file created.

I've placed (' ') instead of (" ") and now i would like to replace (' ') by (" ").

sorry, i didn't manipulate files...

Thanks for your help.
plouf
Posts: 671
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: Replace caracters in a file

Post by plouf »

you have to read manual a little bit more, and experiment with examples ;)

in hollywood in order to add quotes and double quotes to a string, which later will be written to a file you have to use \"

exactly as explained in manual ->https://www.hollywood-mal.com/docs/html ... tring.html
; this will print Hello, "Mr. John Doe"!
DebugPrint("Hello, \"Mr. John Doe\"!")
Christos
User avatar
Juan Carlos
Posts: 933
Joined: Mon Sep 06, 2010 1:02 pm

Re: Replace caracters in a file

Post by Juan Carlos »

Thank you I don't remember this trick to use the " " without problems with the instruction. :D
papiosaur
Posts: 217
Joined: Fri Mar 31, 2023 1:34 pm

Re: Replace caracters in a file

Post by papiosaur »

Thanks a lot plouf!
Post Reply