reading a file line by line - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

reading a file line by line

mahmoodnmahmoodn Posts: 1Member
I have a very hard problem with matlab. I want to read a file line by line and paste each line in to an array. How it is possible? Something like getline in c++. For example the file contains:

1 3 6 4 4 3 1
8 7 4 9 10 2 4 3 1 5 7 8
6 2 4

the load command is not applicable because is says columns are not same. What should I do then? any idea?
Sign In or Register to comment.