Functions | |
EST_String | make_tmp_filename () |
Make a unique temporary filename. More... | |
EST_String | stdin_to_file () |
Copy stdin to a file and return the name of that tmpfile. More... | |
int | writable_file (char *filename) |
return true if this file is writeable More... | |
int | readable_file (char *filename) |
return true if this file is readable More... | |
int | delete_file (const EST_String &filename) |
OS independent way of removing a file. More... | |
EST_String | uncompress_file_to_temporary (const EST_String &filename, const EST_String &prog_name) |
Uncompress file by calling program prog, and write it to new tempoary file. Return name of temporary file. More... | |
int | compress_file_in_place (const EST_String &filename, const EST_String &prog_name) |
Uncompress file and over-write existing file with uncompressed version. More... | |
int | compress_file (const EST_String &filename, const EST_String &new_filename, const EST_String &prog_name) |
compress file by calling program prog, writing result to new_filename More... | |
EST_String make_tmp_filename | ( | ) |
Make a unique temporary filename.
Definition at line 56 of file util_io.cc.
EST_String stdin_to_file | ( | ) |
Copy stdin to a file and return the name of that tmpfile.
Definition at line 96 of file util_io.cc.
int writable_file | ( | char * | filename | ) |
return true if this file is writeable
Definition at line 77 of file util_io.cc.
int readable_file | ( | char * | filename | ) |
return true if this file is readable
Definition at line 65 of file util_io.cc.
|
inline |
OS independent way of removing a file.
Definition at line 81 of file EST_io_aux.h.
EST_String uncompress_file_to_temporary | ( | const EST_String & | filename, |
const EST_String & | prog_name | ||
) |
Uncompress file by calling program prog, and write it to new tempoary file. Return name of temporary file.
Definition at line 205 of file util_io.cc.
int compress_file_in_place | ( | const EST_String & | filename, |
const EST_String & | prog_name | ||
) |
Uncompress file and over-write existing file with uncompressed version.
Definition at line 223 of file util_io.cc.
int compress_file | ( | const EST_String & | filename, |
const EST_String & | new_filename, | ||
const EST_String & | prog_name | ||
) |
compress file by calling program prog, writing result to new_filename
Definition at line 229 of file util_io.cc.