I have a text file (ANSI encoding) with two columns of real numbers separated, unfortunately, by a "Null Character" ("\.00"
).
How can I import this data easily?
The problem:
Take[Import["17Dec15450K00.txt", "Table"], 3]
{{"29.89128\.000.0119872"}, {"30.37339\.000.0120442"}, {"30.85551\.000.0123593"}}
But
ToExpression[Take[Import["17Dec15450K00.txt", "Table"], 3]]
{{29.8913}, {30.3734}, {30.8555}}
Other functions also fail with if the string contains the Null Character
ToCharacterCode["999\.00999"]
StringReplace["999\.00999", "\.00" -> "X"]
Gives no output. Is that a bug?
File available via Dropbox here
UUE ZIP via Pastebin here
\.00
in a string gives an error. See my related Q&A. $\endgroup$