Software Archive
Read-only legacy content
17061 Discussions

Binary File Compress

emrey
Beginner
729 Views

Hi,

I need to read/write big data on the disk while my simulation continues. In order to make the size smaller on the disk I write the data as binary. However, the size of this data can be further decreased considerably by an external compressor . My question is, can I read\write in compressed binary format directly from Fortran?

Thanks,

Emre 

0 Kudos
2 Replies
gaston-hillar
Valued Contributor I
729 Views

emrey,

Check the following thread that includes sample code for the problem you mention with Intel Fortran. It will definitely help you.

https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/276634

Hope it helps.

0 Kudos
gaston-hillar
Valued Contributor I
729 Views

emrey,

I forgot to mention. The thread I mention in my previous response provides sample code to read ZIP files.

However, you can use a similar approach to read other compressed files.

0 Kudos
Reply