https://www.php.net/manual/zh/splfileobject.fscanf.php
Parses input from file according to a format
phpfscanfmanual
https://www.mathworks.com/help/matlab/ref/fscanf.html
This MATLAB function reads data from an open text file into column vector A and interprets values in the file according to the format specified by formatSpec.
text filefscanfreaddatamatlab