Re: Replies to various stuff
>First I would like to point out one thing in the "Sequences and long
>filenames" chain (or thread or whatever). This statement:
>
>> if sequence( data ) then
>> -- Print sequence
>> printf( fn, "\"%s\"", data )
>
>will print s = "Kato \"Badass\" Love" as [..]"Kato "Badass" Love"[..]
>in the file, and will get() be able to read those extra qoutemarks
correctly?
>I have not tested this, but I did not think so.
>
Yes, it will mess the stuff up. I made a program specific routine to save
a simple database program's (using David Cuny's TextGUI) data to a file.
All you have to do is go through the sequence and test for a \", then
insert a \\ before it. Here is some untested and unoptimized code that
should get the job done:
integer something
something = -1
while 1 do
something = find('\"', data[something+2..length(data)])
if something then
data = data[1..something-1] & '\\' &
data[something..length(something)]
else
exit
end if
end while
_____________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com
Or call Juno at (800) 654-JUNO [654-5866]
|
Not Categorized, Please Help
|
|