| | |
binary file
Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Apr 2006
Posts: 42
Reputation:
Solved Threads: 0
hi all ,
i have a program that read its input from a file in binary mode!
now i nead to store this data and to compare it with another data.
which datataype can my input take.
also, the comapred stream is in this form 0004a4900
i made this stream as a cons int and then with 0x it is already stored as an hex. stream
now when i read i want to search this strream in my input file
i have a program that read its input from a file in binary mode!
now i nead to store this data and to compare it with another data.
which datataype can my input take.
also, the comapred stream is in this form 0004a4900
i made this stream as a cons int and then with 0x it is already stored as an hex. stream
now when i read i want to search this strream in my input file
>which datataype can my input take.
The same data type you used to write it if you want a meaningful comparison. If you're just checking for equality, you can use unsigned char and compare every byte individually.
>also, the comapred stream is in this form 0004a4900
>i made this stream as a cons int and then with 0x it is already stored as an hex. stream
>now when i read i want to search this strream in my input file
There's no question here.
The same data type you used to write it if you want a meaningful comparison. If you're just checking for equality, you can use unsigned char and compare every byte individually.
>also, the comapred stream is in this form 0004a4900
>i made this stream as a cons int and then with 0x it is already stored as an hex. stream
>now when i read i want to search this strream in my input file
There's no question here.
I'm here to prove you wrong.
![]() |
Similar Threads
- Binary File Parser (C++)
- Read a string from a binary file into a C or C++ string (C++)
- Reading a Binary file using Visual Basic (Visual Basic 4 / 5 / 6)
- Reading a Binary File to a C++ Class (C++)
- binary file manipulations (C)
- C++ raster files (writing structs to a binary file) (C++)
Other Threads in the C++ Forum
- Previous Thread: Please HGelp - c++
- Next Thread: hex converting
| Thread Tools | Search this Thread |
api array based binary bitmap c++ c/c++ calculator char char* class classes code coding compile console conversion count database delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp iamthwee ifstream input int java lib linkedlist linker linux list loop looping loops map math matrix memory multiple news node number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg sorting string strings temperature template templates test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






