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
- Follow-Ups:
- Re: Import numerical data and split by pattern
- From: "Scot T. Martin" <smartin@deas.harvard.edu>
- Re: Import numerical data and split by pattern
- From: "Scot T. Martin" <smartin@deas.harvard.edu>
- Re: Import numerical data and split by pattern