MathGroup Archive 2008

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

Search the Archive

Import numerical data and split by pattern

  • To: mathgroup at smc.vnet.net
  • Subject: [mg94431] Import numerical data and split by pattern
  • From: "Gehricht at googlemail.com" <Gehricht at googlemail.com>
  • Date: Fri, 12 Dec 2008 06:58:45 -0500 (EST)

Hi!

I am asking this more out of curiosity, but is there a neat way to
accomplish the following task within Mathematica.
Suppose I have a file as follows
## a b c
1 1.0
2 2.0
# d e f
3 3.0
4 4.0
## c d e
5 5.0
6 6.0
...
Now I want everything between ## and # in a separate list, i.a. list1=
{{1,1.0},{2,2.0}}, list2={{5,5.0},{6,6.0}}, etc.
How could I get this?
With thanks in advance
Yours Wolfgang


  • Prev by Date: Re: Clever way to manipulate lists
  • Next by Date: Re: use of a notebook inside another notebook
  • Previous by thread: Re: Re: branch of (-1)^(1/3)
  • Next by thread: Re: Import numerical data and split by pattern