How to handle big files

3 vues (au cours des 30 derniers jours)
Ancalagon8
Ancalagon8 le 1 Sep 2018
Modifié(e) : Ancalagon8 le 6 Jan 2025
I have huge files and i want to know how i can handle them. Is splitting the big file the only option i have?

Réponses (1)

Walter Roberson
Walter Roberson le 1 Sep 2018
Another approach is to fopen() the file, and textscan() using a repeat count (a number as the parameter after the format string) to control how many lines are read at a time; you would read a chunk, process it, go back to read another chunk, and so on.

Catégories

En savoir plus sur Data Import and Export dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by