Announcement

Collapse
No announcement yet.

Newbie having trouble writing dates to file

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Michael Begley
    replied
    Thank you very much, the Print # statement did the trick. Mike Begley

    Leave a comment:


  • Kev Peel
    replied
    Use PRINT # (sequential) or PUT$ (binary) to write without quotes

    Leave a comment:


  • Michael Begley
    started a topic Newbie having trouble writing dates to file

    Newbie having trouble writing dates to file

    I am trying to write financial time series data out to a file using the sequential method. I read the data into arrays from another file using a string array to store the dates in mm/dd/ccyy format. I am not trying to do any date arithmetic, just pass the same dates I read in to an output file. Here is the write statement with a loop index of I&. The Dates array is STRING and the Prices array is Extended.

    WRITE #OutputFile&, Dates(I&), Prices(I&, 4)

    Here is a few lines of the output file:
    "01/03/1930",21.23
    "01/10/1930",21.55
    "01/17/1930",21.31

    I need to write the dates out without the quotes as the program that reads this file wants to see for example

    01/03/1930,21.23

    Thanks for any help to what I hope is a simple question. This is my first program attempt, so please assume I don't know anything.

    Mike Begley
Working...
X