Q:

Convert txt file to table

I would like to convert this .txt file:

The [ ] indicate a row.
The , separates the rows.
I want to convert this into a matrix.
How can I do it ?
Thanks.

A:

You can Import[#, "Text"]& and then:
ImportString["[" <> # <> "]", "JSON"] & @ "[123.123,12,123],[1.1,1.2,3]"

{{123.123`, 12, 123}, {1.1`, 1.2`, 3}} 

