フィルターのクリア

divide a large text file into two text files

3 ビュー (過去 30 日間)
Amr Hashem
Amr Hashem 2015 年 5 月 18 日
コメント済み: Amr Hashem 2015 年 5 月 19 日
i have a large text file more than 600 mB. i couldn't open it. is there is any way to open it? or split\divide it into smaller text files? or any code can help?
  1 件のコメント
dpb
dpb 2015 年 5 月 18 日
Look into
doc memmapfile % perhaps

サインインしてコメントする。

採用された回答

per isakson
per isakson 2015 年 5 月 19 日
編集済み: per isakson 2015 年 5 月 19 日
Alternatives
  • The free (as in beer) program GSplit splits the file. I was able to split a 16GB text file successfully minutes after downloading. The documentation is okey. (Runs on Windows.)
GSplit: Split large text and similar files like large server logs and other
CSV files by number of lines or occurrences of a specified pattern. Optionally
insert headers into each piece file.
  • loop over the lines of the huge file and write to smaller files
  • and memmapfile
  1 件のコメント
Amr Hashem
Amr Hashem 2015 年 5 月 19 日
it works... thanks

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLarge Files and Big Data についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by