This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

{}

Old posts that have not been replied to for several years.
Locked
J
Jimbo

Post by Jimbo »

I have a list that, when i put it into a txt file, puts all the strings with spaces in inside {}. Is there any way to stop this happening?
P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

yah, either output the elements in the list sepratly as strings (eg, via lindex), or convert the whole list to a string (with split)
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

You can't convert a list to a string using "split".

"split" is used to split a string into a list.

You may try using the "join" command to convert a list to a string.

P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

/me shoots himself in the head

looks like I should get more sleep, as I've just disproved my theory that I can code tcl in it :razz:
Locked