Info

This question is closed. Reopen it to edit or answer.

how to import 2gb txt file data into workspace?

1 view (last 30 days)
fang yu
fang yu on 30 Apr 2021
Closed: Stephen23 on 30 Apr 2021
how to import 2gb txt file data into workspace?
The txt file has four columns, 8812616 rows , all of which are pure numbers, are 2gb. The content of the file is on the photo.
I try to use textscan but error using textscan.
too many output arguments.
  2 Comments
DGM
DGM on 30 Apr 2021
You'd have to post how you were calling textscan for anyone to know why it was wrong.
Also, ~35 characters x 8.8M lines should be around 300MB (assuming 8-bit encoding). Why is the file ~6x larger than expected? Is that any potential source of problems?

Answers (0)

This question is closed.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!