Basically I was wondering if it is possible to Append to the START of the file, instead of the end?
For a bit of background information, I have a lump of raw data in hex (they are samples collected from a microphone on a microcontroller then transferred to the PC via RS232). I was planning on dumping them straight into a file, then adding some .wav header information to the beginning of the file, then THEORETICALLY i should be able to use it as a normal .wav file. Does anyone see a problem with this?
Open filename For Input As #1
Open filename2 For Append As #2
Write #2, "WAVE HEADER INFORMATION"
Dim templine As String
Do Until (EOF(1) = True)
Input #1, templine
Write #2, templine
Loop
Close
The first file is 186kb, and after adding header information (currently just "WAVE HEADER INFORMATION") then appending all of the first file to the second.... the second file is only 85kb
I assume this is because the entire file is on one line or something?
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.