I have an application written in VBscript. It is proprietary, but I
can add vbs subroutines to it. The file that this application
generates is a 512 x 512 matrix. Each data set in the matrix is
consists of a real and imaginary number(floating point). This file is
passed to a matlab script which performs Fast Fourier Transforms on it
and rewrites the file as text. This file must be moved across a
network that is encrypted. The file is so large that it can take
anywhere from 20 to 45 minutes to move the file. In an experiment I
created a similarly formatted file but it was a byte array, the file
transferred in less than 2 minutes every time.

I need a hint at some vbs code that would take a file which held a
512x512 matrix in text format, convert it to binary so I can get it
across the network, then on the other side convert it back into the
text format.

Thanks

M

Re: Ascii Text file to Binary and back again by Tom

Tom
Fri Dec 08 11:55:54 CST 2006

I would guess that the issue is more one of the size of the file. If
you compress the file, say zip it, it will probably transfer as fast as
the binary version - maybe faster.

Tom Lavedas
============
http://members.cox.net/tglbatch/wsh/

Mason wrote:
> I have an application written in VBscript. It is proprietary, but I
> can add vbs subroutines to it. The file that this application
> generates is a 512 x 512 matrix. Each data set in the matrix is
> consists of a real and imaginary number(floating point). This file is
> passed to a matlab script which performs Fast Fourier Transforms on it
> and rewrites the file as text. This file must be moved across a
> network that is encrypted. The file is so large that it can take
> anywhere from 20 to 45 minutes to move the file. In an experiment I
> created a similarly formatted file but it was a byte array, the file
> transferred in less than 2 minutes every time.
>
> I need a hint at some vbs code that would take a file which held a
> 512x512 matrix in text format, convert it to binary so I can get it
> across the network, then on the other side convert it back into the
> text format.
>
> Thanks
>
> M