Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: String to list

  • To: mathgroup at smc.vnet.net
  • Subject: [mg60967] Re: String to list
  • From: "Dr. Wolfgang Hintze" <weh at snafu.de>
  • Date: Wed, 5 Oct 2005 02:28:13 -0400 (EDT)
  • References: <dht4il$ho4$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Here's one method

Str = "Hi every one!";
str1 = StringToStream[Str];
Table[Read[str1, Character], {i, 1, StringLength[Str]}]

Regards,
Wolfgang

Sara wrote:

> How can I transform a string to a list??
> example:
> Str="Hi every one!"  and the list af str=?????
> 
> 


  • Prev by Date: Re: String to list
  • Next by Date: Re: String to list
  • Previous by thread: Re: String to list
  • Next by thread: Re: String to list