473,387 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

binary IO

Hi All.
Where can I look for samples of binary stream?
I try ftp://ftp.fmi.uni-konstanz.de/pub/al...l/binio.tar.gz
from gcc documentation
http://gcc.gnu.org/onlinedocs/libstd...eams_kuehl.txt
but host ftp.fmi.uni-konstanz.de is unknown.

Thanks in advance,
Dmitry

Jul 22 '05 #1
3 2001
dmitry wrote:
Hi All.
Where can I look for samples of binary stream?
I try ftp://ftp.fmi.uni-konstanz.de/pub/al...l/binio.tar.gz
from gcc documentation
http://gcc.gnu.org/onlinedocs/libstd...eams_kuehl.txt
but host ftp.fmi.uni-konstanz.de is unknown.

Thanks in advance,
Dmitry


Please expand on your definition of "binary stream".
Is this the same as opening a stream in binary mode?
--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book

Jul 22 '05 #2
On Thu, 13 May 2004 15:49:37 GMT in comp.lang.c++, Thomas Matthews
<Th****************************@sbcglobal.net> wrote,
dmitry wrote:
Hi All.
Where can I look for samples of binary stream?
I try ftp://ftp.fmi.uni-konstanz.de/pub/al...l/binio.tar.gz
from gcc documentation
http://gcc.gnu.org/onlinedocs/libstd...eams_kuehl.txt
but host ftp.fmi.uni-konstanz.de is unknown.
Please expand on your definition of "binary stream".
Is this the same as opening a stream in binary mode?


The article by Dietmar Kuhl, cited above, gives the idea. Did you read
it before asking?

Briefly, writing an object out to a binary stream IS a formatting
operation whether you like it or not. Therefore objects should be
written in a chosen representation, e.g. big_endian or little_endian for
ints, user format function for classes, regardless of internal byte
layout. ostream::write() etc. does not do any of this and so is
unsuitable for application programming purposes.

A binary stream would be a different class than existing iostreams,
would probably use the same streambuf classes, but would provide an
entirely different set of operator<< formatting actions and manipulators
for binary formatting.

I hope Dietmar may jump into the thread with a new ftp URL for his code,
so I am CC'ing him on this by email.

Jul 22 '05 #3
David Harmon wrote:
dmitry wrote:
Where can I look for samples of binary stream?
I try ftp://ftp.fmi.uni-konstanz.de/pub/al...l/binio.tar.gz
from gcc documentation
http://gcc.gnu.org/onlinedocs/libstd...eams_kuehl.txt
but host ftp.fmi.uni-konstanz.de is unknown.

It is a long time since I put the stuff there and in the meantime the
machine disappeared. I found the implementation, however, brushed it up
a little to compile with up to date compilers and put it at
<http://www.dietmar-kuehl.de/cxxrt/binio.tar.gz>. The code is written
about eight years ago and is not necessarily correct (it had no test
cases such that I can't easily check whether it still does the right
thing). However, I'm using binary formatting with great success in the
project I'm currently paid for. This is somewhat based on the binary
streams although I think only in idea, not implementation.
I hope Dietmar may jump into the thread with a new ftp URL for his code,
so I am CC'ing him on this by email.


CC'ing was a good idea: I didn't see this thread. I put the code on my
own site (see above).
--
<mailto:di***********@yahoo.com> <http://www.dietmar-kuehl.de/>
<http://www.contendix.com> - Software Development & Consulting
Jul 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: yaipa | last post by:
What would be the common sense way of finding a binary pattern in a ..bin file, say some 200 bytes, and replacing it with an updated pattern of the same length at the same offset? Also, the...
20
by: Christian Stigen Larsen | last post by:
A signed int reserves one bit to signify whether a number is positive or negative. In light of this, a colleague asked me whether there existed an int in C++ that was -0, a zero with the negative...
3
by: Tron Thomas | last post by:
What does binary mode for an ofstream object do anyway? Despite which mode the stream uses, operator << writes numeric value as their ASCII representation. I read on the Internet that it is...
103
by: Steven T. Hatton | last post by:
§27.4.2.1.4 Type ios_base::openmode Says this about the std::ios::binary openmode flag: *binary*: perform input and output in binary mode (as opposed to text mode) And that is basically _all_ it...
9
by: Ching-Lung | last post by:
Hi all, I try to create a tool to check the delta (diff) of 2 binaries and create the delta binary. I use binary formatter (serialization) to create the delta binary. It works fine but the...
7
by: John Dann | last post by:
I'm trying to read some binary data from a file created by another program. I know the binary file format but can't change or control the format. The binary data is organised such that it should...
68
by: vim | last post by:
hello everybody Plz tell the differance between binary file and ascii file............... Thanks in advance vim
5
by: bwv539 | last post by:
I have to output data into a binary file, that will contain data coming from a four channel measurement instrument. Since those data have to be read from another C program somewhere else, the...
10
by: rory | last post by:
I can't seem to append a string to the end of a binary file. I'm using the following code: fstream outFile("test.exe", ios::in | ios::out | ios::binary | ios::ate | ios::app)...
16
by: Erwin Moller | last post by:
Why is a binary file executable? Is any binary file executable? Is only binary file executable? Are all executable files binary? What is the connection between the attribute of binary and that of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.