| Author |
Comment/Response |
Heiko Dahm
|
04/11/00 05:52am
Opening a datafile with numbers and letters by data=ReadList[ToFileName[''dir'',''file''],Word] I get a List with the Numbers of the opened File. But when I want to count with these Numbers they appear like variables. E.g. N[data[[1]]+data[[3]]] Mathematica returns 7+3 but I expect 10. Opening the ASCII-file with data=ReadList[ToFileName[''dir'',''file''],Number] I get the following error-message:
Read::readn: Syntax error reading a real number from the file.
How can I open such an ASCII-file with numbers and letters to count with the numbers?
Thank you for helping me
Yours
Heiko
URL: , |
|