[mg90393] Trouble related to "CSV"

View: New views
1 Messages — Rating Filter:   Alert me  

[mg90393] Trouble related to "CSV"

by email.slim :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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!

LightInTheBox - Buy quality products at wholesale price