>Hi Sergey,
> I am working with a file compression routine that will be
>used to compress each file in a backup folder,
>xx = compressit(FILETOSTR("C:\BACKUP\INPUT.BMP")),
>and then copy the compressed file from a MVAR to a file on a floppy disk,
>STRTOFILE(xx, "A:\OUTPUT.BMP"). I want to know if the floppy disk
>will hold the next file. If not, I will prompt for a new floppy.
>Terry :)
len(xx) will give you the length of the character variable, in bytes.
Won't you run into the problem that a single file is bigger than a complete floppy disk? Most compression programs have the option of splitting files among more than one floppy disk. Perhaps you should consider this too - for files that are too big for a single floppy, and for more efficient use of available space, in general.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)