Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 62 results for
binaryfile
- Page 1
seekg() is driving me nuts
Programming
Software Development
13 Years Ago
by EgyCoder
…
binaryFile
.clear();
binaryFile
.seekg(32); counter=0; while (!
binaryFile
.eof()) {
binaryFile
…stID ; if (
binaryFile
.fail()) break;…
Function Trouble
Programming
Software Development
13 Years Ago
by Frostyyy
… dataFlags[], int &dataSize) { ifstream
binaryFile
;
binaryFile
.open("Data.in", ios::in|…lt; endl; return(1); } else if (!
binaryFile
.read(reinterpret_cast<char *>(dataFlags),sizeof(int)*… " << endl; return(1); }
binaryFile
.close(); return 0; } int main() { int getMetaData…
IHttpHandler byte[]
Programming
Web Development
13 Years Ago
by 4advanced
…Richard The Netherlands Some code (simplified) [code] class
BinaryFile
{ private byte[] _fileData; public byte[] FileData { get….Close(); } private static
BinaryFile
FileInformation(int id, bool includeFileData) {
BinaryFile
binFile = new
BinaryFile
(); using (System.Data.SqlClient…
strange windows error
Programming
Software Development
15 Years Ago
by cam875
… (op == "sub") { // sub Eax Ebx } } sourcefile1.close(); ofstream
binaryfile
;
binaryfile
.open ("program.bin", ios::out | ios::binary…
Re: strange windows error
Programming
Software Development
15 Years Ago
by ivailosp
… (op == "sub") { // sub Eax Ebx } } sourcefile1.close(); ofstream
binaryfile
;
binaryfile
.open("program.bin", ios::out | ios::binary…);
binaryfile
.write(binary, sizeof(binary));
binaryfile
.close(); [COLOR="Red"]delete[] binary;[/COLOR…
Encode and decode binary data with base64
Programming
Software Development
13 Years Ago
by X-Boy
…binary data to a file. [CODE=Python]import base64
binaryfile
= open("original.mp3").read() file = …;out.txt", "w") file.write(
binaryfile
) file.close() base64.encode(open("out.txt"…"w")) print "original:", repr(
binaryfile
) print "encoded message:", repr(open("out…
Content extraction using Apache Tika
Programming
Software Development
7 Years Ago
by Traevel
…plain")); // create a file in the temp folder File
binaryFile
= folder.newFile("binary.bin"); // write to … comes back as application/octet-stream assertThat(new FileTypeDetector().getFileType(
binaryFile
.getPath()), is("application/octet-stream")); // create …
Find bytes from a read() does not find all occurences
Programming
Software Development
6 Years Ago
by nadiam
…;portrait1.dng" with open(filename, "rb") as
binaryfile
: with open("foundhex.txt", "w") as… : " + str(today) + "\n") while True: read_file = bytearray(
binaryfile
.read(1024)) find_bytes1 = read_file.find(bytes1, 0) if fine_bytes1 != -1…
Re: Find bytes from a read() does not find all occurences
Programming
Software Development
6 Years Ago
by woooee
…"a") as found1: while True: read_file = bytearray(
binaryfile
.read(1024)) if len(read_file): find_bytes1 = read_file.find(bytes1, 0… subsequent strings. Finally, for this statement `read_file = bytearray(
binaryfile
.read(1024))` what happens if half of bytes1 is in…
Re: Find bytes from a read() does not find all occurences
Programming
Software Development
6 Years Ago
by nadiam
… re with open(filename, "rb") as
binaryfile
: while True: read_file =
binaryfile
.read() if len(read_file): for find_bytes in re.finditer…
Re: Find bytes from a read() does not find all occurences
Programming
Software Development
6 Years Ago
by nadiam
…)) with open(self.txt_filename, "rb") as
binaryfile
: while True: readfile = bytearray(
binaryfile
.read(BLOCKSIZE)) if len(readfile): index = 0 while…
Re: Adding to an existing binary file
Programming
Software Development
7 Years Ago
by AssertNull
… intended and I'm thinking you are not writing to
BinaryFile
.bin at all and you are "reading" from… an old file. Try deleting
BinaryFile
.bin, then running the program, see if you get the…
fwrite problem
Programming
Software Development
14 Years Ago
by VernonDozier
…; i < 20; i++) bytes[i] = 10; binFile = fopen ("
BinaryFile
.bin", "w"); numBytesWritten = fwrite (bytes, 1, 20…
need help with binary file
Programming
Software Development
13 Years Ago
by jigglymig1
…; fstream textFile("coaches.txt",ios::out), dataFile("
binaryFile
.dat",ios::in | ios::binary); if(dataFile.fail() || textFile…
Re: need help with binary file
Programming
Software Development
13 Years Ago
by Lerner
you do a single read of
binaryFile
.dat using the read() method called on the fstream called …
Problem in binary file reading
Programming
Software Development
13 Years Ago
by ganesh_IT
…;file path", ios_base::binary | ios_base::in); char buf[] = "
BinaryFile
"; file.write(buf, sizeof(buf)); file.close(); } //My file…
Re: Problem in binary file reading
Programming
Software Development
13 Years Ago
by mike_2000_17
…(buf). Now, to the meat of it. What is "
BinaryFile
"? [CODE] In ascii characters notation (null-terminated string): 'B…
Re: Problem in binary file reading
Programming
Software Development
13 Years Ago
by Fbody
…;file path", ios_base::binary | ios_base::in); char buf[] = "
BinaryFile
"; int buffSize = sizeof(buf); file.write(buf, buffSize); file…
String Encryption
Programming
Software Development
12 Years Ago
by lochnessmonster
… a hardcoded string from being scanned and found in memory/
binaryfile
? I dont see how string encryption works 100% of the…
Adding to an existing binary file
Programming
Software Development
7 Years Ago
by zzQwerty
…; int value; }; Binary::Binary(int num) { value = num; binFile = "
BinaryFile
.bin"; } Binary::~Binary() { } void Binary::writeBinary() { fstream outBinaryFile; ofstream…
Re: Adding to an existing binary file
Programming
Software Development
7 Years Ago
by David W
… default fname given here // Binary( const string& afname="
BinaryFile
.bin" ) : fname(afname) { ifstream fio( fname, ios::binary ); if…
Re: Virus scanning development using PHP
Programming
Web Development
15 Years Ago
by sndpbohra
… OK $width=$img_data['width']; $height=$img_data['height']; _pcpin_loadClass('
binaryfile
'); $
binaryfile
=new PCPIN_BinaryFile($session); if ($
binaryfile
->newBinaryFile(file_get_contents($f_data['tmp_name']), $img_data['mime'], $width…
Re: Input wav file Output Spectrogram using FFT algorithm
Programming
Software Development
14 Years Ago
by SwiftSilver
… facts; DataChunk RawBinaryData; int **ProcessedData; bool DataIsGood; void read(char
binaryfile
[]); void ProcessData(char binarydata[]); public: WavReader(char * filename); ~WavReader(); void…
Re: And or not
Programming
Software Development
15 Years Ago
by cam875
…} } sourcefile1.close(); // Binary Write ofstream
BinaryFile
;
BinaryFile
.open(OutputFileName.c_str(),binary); if (!
BinaryFile
.is_open()) { system("cls"); cout …lt;< endl; system("PAUSE"); }
BinaryFile
.write(BinaryVector,ProgramSize);
BinaryFile
.close(); }[/ICODE]
Re: And or not
Programming
Software Development
15 Years Ago
by cam875
…; counter++; } } sourcefile1.close(); // Binary Write ofstream
BinaryFile
;
BinaryFile
.open(OutputFileName.c_str(),ios :: binary); if (!
BinaryFile
.is_open()) { system("cls"); cout <…; << endl; system("PAUSE"); }
BinaryFile
.write(BinaryVector,ProgramSize);
BinaryFile
.close(); } [/code]
Re: First step in reading a text file and converting it to a binary file
Programming
Software Development
14 Years Ago
by lost_scotsman
…of the elements ifstream
BinaryFile
(SaveFile, ios::binary);
BinaryFile
.seekg(0);
BinaryFile
.read(reinterpret_cast<char…29] << "\n\n";
BinaryFile
.close(); //--------------------------------------------------------------------------------------------------------------------------- // STAGE 5: CLEANING UP // …
Re: First step in reading a text file and converting it to a binary file
Programming
Software Development
14 Years Ago
by lost_scotsman
… and read some of the elements ifstream
BinaryFile
(SaveFile, ios::binary); if (
BinaryFile
.is_open()) {
BinaryFile
.seekg(0);
BinaryFile
.read(reinterpret_cast<char *>(&…
Re: First step in reading a text file and converting it to a binary file
Programming
Software Development
14 Years Ago
by lost_scotsman
… float[cols]; } fstream
BinaryFile
;
BinaryFile
.open(SaveFile, ios::in | ios::binary);
BinaryFile
.seekg(0);
BinaryFile
.read((char*)&NewSet,size);
BinaryFile
.close();[/CODE] Also when…
Re: Reading and Writing Binary File C++
Programming
Software Development
14 Years Ago
by tarheelfan_08
…r[2].mileage = 112345; } ofstream out("
binaryFile
.dat", ios::binary | ios::trunc); out.exceptions…in struct record recordsReadFromFile[3]; ifstream in("
binaryFile
.dat", ios::binary); if(!in) {… cout << "Can't open
binaryFile
.dat" << endl; } else { …
Re: Reading and Writing Binary File C++
Programming
Software Development
14 Years Ago
by tarheelfan_08
…r[2].mileage = 112345; } ofstream out("
binaryFile
.dat", ios::binary | ios::trunc); out.exceptions…in struct record recordsReadFromFile[3]; ifstream in("
binaryFile
.dat", ios::binary); if(!in) {… cout << "Can't open
binaryFile
.dat" << endl; } else { …
1
2
3
Next
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC