how to split a file
古いコメントを表示
Hi, I want to read a long file (with unknown lines) then split it into 'x' lines files and read the data for each new splited data. Any help on how to do this will be very appreciated,
Thanks in advance
8 件のコメント
Guillaume
2019 年 10 月 25 日
Split a file into blocks of 'x' lines is easily done. However, it's not clear what you mean by "read the data for each new splited data". What does read actually mean? And why would you not read the whole data and do the splitting afterward (if it's actually needed)?
Carolina Sainz
2019 年 10 月 28 日
Walter Roberson
2019 年 10 月 28 日
Which 360000 lines out of 800000 ? Is it the first 360000 lines, or lines chosen at random?
Carolina Sainz
2019 年 10 月 28 日
Walter Roberson
2019 年 10 月 28 日
Would you happen to be using Mac, or Linux?
Carolina Sainz
2019 年 10 月 28 日
Guillaume
2019 年 10 月 28 日
Do you have an example text file we can test code against?
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Text Files についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!