Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / writing to file help

Author
Message
nojbox87
19
Years of Service
User Offline
Joined: 26th Jun 2005
Location: England
Posted: 8th Jan 2006 18:33
how can i write the chatacter " to a txt file? when using

there are obviouse problems. However i am writing HTML so my program needs to be able to write the character " to file. Is this possible and how.
Thanks in advance nojbox87

I am a Christian and I know that God loves me. That is what makes my life so great!
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 8th Jan 2006 19:02 Edited at: 8th Jan 2006 21:16
Yeah , offcourse , but i don`t know the exact code for db , but i`l tell you what you can do

q$=chr$(34)

there it is , now just use +q$ wherewer you need "

like :

print q$+"print"+q$
(just an example ..)

Ok , here`s what you should have in your program now :

and you will get what you needed.

p.s. I hope i helped


Halo Man
19
Years of Service
User Offline
Joined: 5th Nov 2005
Location:
Posted: 8th Jan 2006 20:24
Quote: "However i am writing HTML so my program needs to be able to write the character " to file. Is this possible and how.
"



I don't know the answer to your question, but what do you mean by that?

*Insert Signature Here*
UFO
19
Years of Service
User Offline
Joined: 11th Oct 2005
Location:
Posted: 8th Jan 2006 20:34
Dodic explained it correctly.
Use the char$() code for the "


Hippopotomonstrosesquippedaliophobia-Fear of long words
nojbox87
19
Years of Service
User Offline
Joined: 26th Jun 2005
Location: England
Posted: 9th Jan 2006 16:38
oh yes didnt think of that
Thanks dodic, and the rest of you

I am a Christian and I know that God loves me. That is what makes my life so great!

Login to post a reply

Server time is: 2025-05-22 23:43:10
Your offset time is: 2025-05-22 23:43:10