Page 1 of 1 1
Topic Options
#31632 - 2002-10-31 03:26 PM How do I write " in a file with WriteLine
mima Offline
Hey THIS is FUN

Registered: 2002-01-25
Posts: 217
Loc: Jönköping, Sweden
Hello

I want to produce a row in a file with this
"C:\Documents and Settings"

If I do WriteLine(1, "C:\Documents and Settings") I dont get the ".

How ???

/Mima

Top
#31633 - 2002-10-31 03:28 PM Re: How do I write " in a file with WriteLine
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Look at the code in WriteLog2() http://www.kixtart.org/cgi-bin/ultimatebb.cgi?ubb=get_topic;f=12;t=000188#000000

You will see how to use it. Or you can just use the UDF itself.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#31634 - 2002-10-31 03:29 PM Re: How do I write " in a file with WriteLine
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
also, why not use %userpofile% for this.
making at the end:
WriteLine(1,'"%userpofile%"')
_________________________
!

download KiXnet

Top
#31635 - 2002-10-31 03:30 PM Re: How do I write " in a file with WriteLine
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Check the FAQ forum for help with quotes, but basically:
code:
WriteLine(1, '"C:\Documents and Settings"') 


Top
#31636 - 2002-10-31 03:31 PM Re: How do I write " in a file with WriteLine
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Sorry, I seemed to have missed the point. [Embarrassed]

WriteLog2("junk.txt", '"C:\Documents and Settings"')

[ 31. October 2002, 15:33: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#31637 - 2002-10-31 03:40 PM Re: How do I write " in a file with WriteLine
mima Offline
Hey THIS is FUN

Registered: 2002-01-25
Posts: 217
Loc: Jönköping, Sweden
Thanks Richard
It worked fine with your solotion with
'"abc"'

/Mima

Top
#31638 - 2002-10-31 03:43 PM Re: How do I write " in a file with WriteLine
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
mima, I assume this script is to be not used on nt or win9x as it will not work...
or if all you just want is to write some text to a file.
_________________________
!

download KiXnet

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.06 seconds in which 0.028 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org