Thanks Eros.
I want to ZIP the file in the same directory. It will be used to as script that will compare files in the directory based on their date modifided if they are older then X days they will be ziped. ( I have started this i can do this not a problem)
I have made the following code i dont know if its right so far. But it reads the file i just need to write the part to save it.
Currently i have:
Uses "FILE"
Uses "ZLIB"
Dim FileName As String = APP_ScriptPath + "myfile.txt" ' Set the file name to use'
Dim sCompressedBuffer As String
Dim sCompressedBuffersave As String
Dim FileHandle As DWord
sCompressedBuffer = StrZip$(FILE_Load(FileName))
sCompressedBuffersave = StrZip$(FILE_Save(,"myfile2.txt"))
I was looking at the example of FILE_SAVE but i can't manage to get it to save. Do i need to load the file then open it up then save it? Or would it require FILE_GET, FILE_SEEK,_FILE CLOSE?
Thank you for your time.
Bookmarks