-
as seen on Stack Overflow
- Search for 'Stack Overflow'
(define (read-all-input)
(local ((define line (bytes->list (read-bytes 4))))
(if (eof-object? line)
empty
(cons line (read-all-input)))))
(void (read-all-input))
The above code fails because bytes-list expects an argument of type byte string, but is given #
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a binary file to which I want to append a chunk of data at the end of the file, how can I achieve this using C# and .net? also are there any considerations to take when writing to the end of a binary file? thanks a lot for your help.
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I've been working on this assignment, where I need to read in "records" and write them to a file, and then have the ability to read/find them later. On each run of the program, the user can decide to write a new record, or read an old record (either by Name or #)
The file is binary, here is its…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi guys,
Know this might be rather basic, but I been trying to figure out how to one after create a dynamic array such as
double* data = new double[size];
be used as a source of data to be kept in to a binary file such as
ofstream fs("data.bin",ios:binary");
fs.write(reinterpret_cast<const…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Previously attoparsec was suggested to me for parsing complex binary file formats. While I can find examples of attoparsec parsing HTTP, which is essentially text based, I cannot find an example parsing actual binary, for example, a TCP packet, or image file, or mp3. Can someone post some code or…
>>> More