Hello, my problem is a problem of a bigger program. In this part of a program I have to load a text file which looks like something this::
Program has to read a file not knowing the number of lines (I made a function for that) and not knowing what's exactly in a file (example: q3,q1,sta2,q4,sta1 instead of the first line of the file)
Is there a way to load that text file as a large 2D array or as multiple 1D arrays (one line = one array)? Something like this:
Now, I tell the program to print mat and it will print ,
or (second case, 1D arrays) to print r3 and it will print -
(I don't need the printing option in my program, I need an different elements from that large array)
I hope you understand what I want to do. I've no idea how to make this or is it even possible. Please, help me. Thanks.