0
$\begingroup$

Ver.12.1.0.0 hangs up when I do "Import" a csv file that contain an entry ""000000000000000000000000000000000000000053253943D755066515000057", while this csv file can be read by EXCEL and Mathematical allows Import of the resulting xlsx file. What can I do, other than reporting this to the Mathematica support?

$\endgroup$
3
  • $\begingroup$ The question looks unclear. Can you add a code sample that reproduce the issue? Anyway, I guess I might have understood your question. Do you mean the following code sample hangs?: Export["test.csv", "000000000000000000000000000000000000000053253943D755066515000057"]; Import["test.csv"] $\endgroup$
    – xzczd
    Jun 28, 2020 at 13:19
  • 2
    $\begingroup$ You could also change the D to a an X. OI think Import tries to be smart and thinks that D as a Fortran version of E ... , i.e., ImportString["1D7", "CSV"] gives 10^7. I wished Import would be better documented and less "smart". $\endgroup$ Jun 28, 2020 at 18:31
  • 5
    $\begingroup$ Does this answer your question? Importing a string such as "3d456" from a CSV file causes trouble $\endgroup$ Jun 30, 2020 at 1:45

1 Answer 1

2
$\begingroup$

This imports all entries as a string

Import["test.csv", {"CSV", "RawData"}]
$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.