[plt-scheme] How to get tokenize a string?

From: krhari at ccs.neu.edu (krhari at ccs.neu.edu)
Date: Sun Nov 8 02:41:55 EST 2009

Hi,
I have a file which contains data like this

  2.5500000e-002  3.6238983e-002
  2.5500000e-002  3.6238638e-002
  2.5500000e-002  3.6237603e-002
...

I am working on a small animation I need these numbers to calculate some things there... I am using 2htdp/universe teachpack...

I actually found string->tokenize function in SRFI doc... Can I use it? If yes can anyone guide me how to use SRFI? If no is there any other way out other than converting the file into a string then using sting->list and doing it in brute force way?

If I use file->string, I get a string like this
"  2.5500000e-002  3.6238983e-002\r\n  2.5500000e-002  3.6238638e-002\r\n  2.5500000e-002  3.6237603e-002\r\n"

Please help me out...

Thanks
Hari


Posted on the users mailing list.