Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Trouble related to "CSV"

  • To: mathgroup at smc.vnet.net
  • Subject: [mg90393] Trouble related to "CSV"
  • From: email.slim at gmail.com
  • Date: Tue, 8 Jul 2008 02:26:25 -0400 (EDT)

Hi everyone,

I'm trying to read in data from a text file composed of strings and
tables of comma separated integers.
Here's what I have:

rows = cols = 45;
readstr = OpenRead["teststr.txt"];

For[r = 1, r =98 rows,
  			{For[c = 1, c =98 cols,
      						{
        					p[[r, c]] = Read[readstr, "CSV"],
        					l = Partition[p[r, c], rows],
        					c++}],
    			r++}],
=2E......

I am able to get this working on one machine with Mathematica 5.2, but
I can't get it to work on another machine with Mathematica 5.0 or
Mathematica 6.0.  Does anyone know how to fix this problem?

Thanks very much in advance!


  • Prev by Date: How to make variable have package scope but not global scope.
  • Next by Date: Re: A strange precision behavior?
  • Previous by thread: Re: How to make variable have package scope but not global scope.
  • Next by thread: Re: Trouble related to "CSV"