Skip to content
Advertisement

How to save data from a “For Loop” into a compressed “.txt” file

I am trying to write a java code to save data from a “For Loop” (2d array named “arr”) into a compressed “.txt” file.

JavaScript

What piece of code should be added to convert the result into Bytes and then use “ZipOutputStream” to write data into a compressed “.txt” file?

Thanks.

Advertisement

Answer

JavaScript

maybe this is useful for you

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement