1

Im trying to use idl to read a file, so im using the readcol command. However, in my file i use | as a delimiter, but continually get syntax errors. Heres my latest attempt:

readcol,'kcorrins.txt',uband, gband, rband, iband, zband, $
   ubanderr, gbanerr, rbanderr, ibanderr, zbanderr, adjredshift, $
   SKIPLINE=1, DELIMITER=|

could someone post an example of the proper syntax for using the delimiter in this way?

Jim Lewis
  • 43,505
  • 7
  • 82
  • 96
user3715675
  • 183
  • 1
  • 2
  • 7

1 Answers1

1

You need to quote the delimiter:

readcol,'kcorrins.txt',uband, gband, rband, iband, zband, $
  ubanderr, gbanerr, rbanderr, ibanderr, zbanderr, adjredshift, $
  SKIPLINE=1, DELIMITER='|'
Jim Lewis
  • 43,505
  • 7
  • 82
  • 96