Forum Discussion

vex's avatar
vex
Contributor
13 years ago

Writing Binary Files

Can TestComplete write out binary files with vbscript, or using aqFile object?



I have an external program I wrote that writes files containing random bytes of any specified size and any file extension (eq: 100000 files 100 bytes each with a .bin extension).  I need this in order to create test data used by our tested app.



I want to be able to get rid of this external dependency and do it solely in TC, but I know VBS Can't reliably write to binary files, and while aqFile documentation says you can open binary files, it doesn't look like it can create them.



Any pointers?

2 Replies