Need help converting CSV to Double Precision binary

  • Thread starter Thread starter skyman302
  • Start date Start date
S

skyman302

I have a 3 collumn comma seperated list of numbers in a text file. I
need to convert these numbers so that they are double precision values
in a regular binary file so one number directly follows the next and
next and so on but in double precision binary values instead of ascii.
Anyone know anyway to do this?
 
I have a 3 collumn comma seperated list of numbers in a text file. I
need to convert these numbers so that they are double precision values
in a regular binary file so one number directly follows the next and
next and so on but in double precision binary values instead of ascii.
Anyone know anyway to do this?

I don't even know wth you said.
 
I have a 3 collumn comma seperated list of numbers in a text file. I
need to convert these numbers so that they are double precision values
in a regular binary file so one number directly follows the next and
next and so on but in double precision binary values instead of ascii.
Anyone know anyway to do this?

Don't know of any freeware to do this directly, it would be reasonably easy
to program something to do this though. A great help, I think is to know
some of the reasoning behind this, are the number to just run into one
another, with no seperation, perhaps then read back as a sequestial file?
 
I have a 3 collumn comma seperated list of numbers in a text file. I
need to convert these numbers so that they are double precision values
in a regular binary file so one number directly follows the next and
next and so on but in double precision binary values instead of ascii.
Anyone know anyway to do this?

With a 3-line basic program maybe :-)
The hardest thing to find out is, what 'regular binary' is
supposed to mean :-)
(But a simple example may solve that.)
 
schreef:
I have a 3 collumn comma seperated list of numbers in a text file. I
need to convert these numbers so that they are double precision values
in a regular binary file so one number directly follows the next and
next and so on but in double precision binary values instead of ascii.
Anyone know anyway to do this?

Like others said: you should tell what 'double precision binary values'
means for your needs.
 
I have a 3 collumn comma seperated list of numbers in a text file. I
need to convert these numbers so that they are double precision values
in a regular binary file so one number directly follows the next and
next and so on but in double precision binary values instead of ascii.
Anyone know anyway to do this?

You don't mention what you have available to do your task. If you have
Basic, you could...

1. Null array counter

2. Open text file for sequential input

3. END if EOF

4. Bump array counter

5. Read next ASCII number as a string

6. Assign the VAL of that string to a double precision array element

7. GOTO 3

I'll leave it to you to figure out how to get the array into a file :)

--
dadiOH
____________________________

dadiOH's dandies v3.06...
....a help file of info about MP3s, recording from
LP/cassette and tips & tricks on this and that.
Get it at http://mysite.verizon.net/xico
 
Back
Top