40 #ifndef __EST_IO_AUX_H__ 41 #define __EST_IO_AUX_H__ 85 return (unlink(filename) == 0);
98 #define numeric_char(in) (((in < '9' ) && (in > '0')) ? TRUE : FALSE) 101 #include "Winsock2.h" int readable_file(char *filename)
return true if this file is readable
int socket_receive_file(SOCKET_FD fd, const EST_String &filename)
int writable_file(char *filename)
return true if this file is writeable
EST_String make_tmp_filename()
Make a unique temporary filename.
int socket_send_file(SOCKET_FD fd, const EST_String &filename)
int compress_file_in_place(const EST_String &filename, const EST_String &prog_name)
Uncompress file and over-write existing file with uncompressed version.
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 ...
EST_String stdin_to_file()
Copy stdin to a file and return the name of that tmpfile.
int delete_file(const EST_String &filename)
OS independent way of removing a file.
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