I have text delimited file, with data in four columns.

How to use ReadList to extract only the first and the fourth column.

  • 1
    $\begingroup$ (I am not sure why this is getting dinged.) I don't know how to do this either with ReadList. Anyway, it may be just as easy to read the whole data set with ReadList, then take the columns with dataReadIn[[All,{1,4}]] Otherwise it could be a job for OpenRead, Read, Skip, etc. $\endgroup$
    – Eric Brown
    Jul 3, 2013 at 11:58
  • 1
    $\begingroup$ related $\endgroup$
    – cormullion
    Jul 3, 2013 at 11:59
  • $\begingroup$ related $\endgroup$
    – cormullion
    Jul 3, 2013 at 12:06
  • 2
    $\begingroup$ Sorry to ask, but what exactly is a "text delimited file"? Is it like a "character-separated values (.csv)"? $\endgroup$ Jul 3, 2013 at 13:29
  • $\begingroup$ Also related: (17841) $\endgroup$
    – Mr.Wizard
    Jul 3, 2013 at 14:32


Browse other questions tagged or ask your own question.