I rewrite the program from MATLAB to Python . Does python similar function textscan ( textscan - reading data from a text file, converting and writing to an array of cells) or do you have to write a separate function

Approximate program code:

 fid = fopen(las_file); file = textscan(fid, '%s', 'delimiter', '\n','whitespace', ''); fclose(fid); 

    1 answer 1

    Perhaps the Python parser of csv files will suit you, I don’t know which format you are going to read, but you can certainly find more suitable parameters that suit the signature of csv.