2
$\begingroup$

I need to Import datas, then I use Import["salida.dat","Table"] and the result is:salida = {{1,2},,{3,4}}. How can I remove salida = and have only the list and Why do this has two commas and how can I delete them?

$\endgroup$
  • 7
    $\begingroup$ What does FilePrint @ "salida.dat" return? $\endgroup$ – Kuba May 28 '18 at 11:24
2
$\begingroup$

Try:

Cases[Import["salida.dat","Table"],{_,_}]
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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