Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi everyone!
I'm probably struck blind at the moment, but I cannot seem to get this thing right: I want the equivalent of Const bufferSize = 10000& Dim buffer as String Open "myfile.txt" For Binary Access Read As #1 buffer = Input(bufferSize, 1) for write operations. I.e. Open "myfile.txt" For Binary Access Write As #1 buffer = "something" Write #1, buffer, len (buffer) However, Write in that form is not compatible with Binary mode, and if I open the file "for output", Write packs my buffer string into text qualifying double quotes. Put, however, totally messes up the data when I use it like Open "myfile.txt" For Binary Access Write As #1 buffer = "something" Put #1, , buffer and it doesn't seem to be what I want anyways. I could swear I've done this before - successfully - but right now I don't know how. Anyone able to help me? I want the output file to contain exactly the number of bytes that equals the length of buffer, and nothing else. Thanks in advance! Lars |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to read data from binary file? | Excel Programming | |||
Import binary file and convert to HEX data | Excel Programming | |||
Write data in a closed file? | Excel Programming | |||
Open CSV file, format data and write output to a text file. | Excel Programming | |||
How can I read/write file with binary format??? | Excel Programming |