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