I have a file that contains binary strings like
01011
00101
01011
I want to import the file to Mathematica as a list of strings, but
Import["test.dat", "Table"]
gave me
{{1011}, {101}, {1011}},
which is a list of numbers rather than strings.
What should I do to make sure that the binary strings are read as strings rather than numbers?
ImportStringwhile I was searching the help files. However,ImportStringreads from a string. Did you suggest that I have to copy and paste the file contents rather than reading from a file by giving the filename? – wdg Jan 23 '14 at 17:11ImportandImportStringtake the same options. I usedImportStringbecause it's easier to create a self contained example. – Ajasja Jan 23 '14 at 17:15