virginlobi.blogg.se

Untar a file txt.gz file
Untar a file txt.gz file







untar a file txt.gz file

In addition, if you do not provide FileOut, then FILE_GUNZIP will uncompress each file into the same directory as the original file. If you do not provide FileOut, then IDL constructs the output filenames by removing the file suffix ".gz" from each filename. FileOut must have the same number of elements as File.

#Untar a file txt.gz file full

Set this optional argument to a string or array of strings giving the output filenames (including the full path). Set this argument to a string or array of strings giving the file or files to uncompress. file = FILEPATH( 'irreg_grid2.txt', SUBDIR=) FILE_GZIP, file, 'irreg_' FILE_GUNZIP, 'irreg_', BUFFER=data HELP, data IDL prints: % Uncompress irreg_ 14213 bytesĪs another example, we can uncompress the above file into a buffer.

untar a file txt.gz file

gz file: file = FILEPATH( 'irreg_grid2.txt', SUBDIR=) FILE_GZIP, file, 'irreg_' FILE_GUNZIP, 'irreg_', /DELETE, /VERBOSE Use the following code to compress a single ASCII text file from the IDL examples directory into our current working directory, then GUNZIP the file, and delete the original. Its source code can be found in the file file_gunzip.pro in the lib subdirectory of the IDL distribution. This routine is written in the IDL language.

untar a file txt.gz file

The uncompression is done using the ZLIB library, written by Jean-Loup Gailly and Mark Adler. The FILE_GUNZIP routine uncompresses a given GZIP input file or files, and saves the uncompressed data into a new file or to memory.









Untar a file txt.gz file