Jun 13, 2003 #1 clarkm2 Programmer Jun 12, 2003 11 US How can I open a wave file and transfer the data into an array? Also I need to convert the format to binary, can anyone help?
How can I open a wave file and transfer the data into an array? Also I need to convert the format to binary, can anyone help?
Jun 13, 2003 #2 chelseatech Instructor Aug 25, 2001 1,812 NZ Here is some code from one of my Apps. iFile = FreeFile Open sFile For Binary As iFile sGet = String(128, " " Do Until EOF(iFile) Get #iFile, , sGet sBuild = sBuild & sGet DoEvents Loop Close iFile At the end of this sBuild is the entire file as a big string. Do what you want with the string. Editor and Publisher of Crystal Clear http://www.chelseatech.co.nz/pubs.htm Upvote 0 Downvote
Here is some code from one of my Apps. iFile = FreeFile Open sFile For Binary As iFile sGet = String(128, " " Do Until EOF(iFile) Get #iFile, , sGet sBuild = sBuild & sGet DoEvents Loop Close iFile At the end of this sBuild is the entire file as a big string. Do what you want with the string. Editor and Publisher of Crystal Clear http://www.chelseatech.co.nz/pubs.htm
Jun 13, 2003 Thread starter #3 clarkm2 Programmer Jun 12, 2003 11 US Cool, Where to I put the code to load a file or is it already there, if so where? Thanks Upvote 0 Downvote