blah blah blah is here! blah blah » Close

0
votes
1 answers

C# Search first serveral characters of strings of a genric list using binary search

I have a generic list. The list is sorted. ================================================ List<string> li = new List<string>(); li.Add("Hello"); li.Add("HelloGuy"); li.Add("Zoom"); li.Add( ...

0
votes
0 answers

Writing to an array

Hi there, I have written this piece of code in C# so that it reads binary from a file at a given offset, however how would I go about storing the bytes in an array so that I could convert from Little Endian to Big Endian? Here's my co ...

0
votes
1 answers

Using Binary files in a login system C SHARP

Making a program which is using .dat files and at the minute I have a registration form which saves the information in a .dat file what I want to do is use this information to be able to login with different users. if anyone can help it wou ...

0
votes
1 answers

c# binary tree

how can i implement a binary tree in c# ?

0
votes
0 answers

Displaying a recursive binary tree

Hi Guys, I’m hoping someone out there can point me in the right direction with a task I need to do. I’ve spent the last few hours googling for solutions, I’ve learned a lot, but I’m missing a big piece of the picture still. I wouldn’t sa ...

0
votes
0 answers

c++ binary file encryption

muster
1556

hello guys. i have a problem that is caused when encrypting an array of objects then storing them in a binary form to a file and reading it back. i know its simple but i don't know the reason for this problem. I'm using xor for encryption a ...

1
votes
1 answers

Binary Files

Dear All, Anybody know what is binary files? And How to write them in C#. I have been using streamreader and streamwriter to work with a text file but I have no idea of the binary file. Kindest Regards, E

1
votes
1 answers

XML Formatted To Binary

eeboy
499

I have data which I store in XML files and manipulate in my program. This data is destined for EEPROM/FLASH of a hardware device and needs to be formatted into a binary table of sorts before it can be loaded into the device. This table is o ...

0
votes
1 answers

Counting the Occurrence of Same Bytes in a Binary File

say I have the below binary file name test.bin. I want to count the occurrence of the same bytes [44 04 85 44 10 10 01 01 10 00 08] in that file. how do I do that? The answer should be 3. Some sample could be be greatly appreciated. thanks. ...

0
votes
2 answers

Load image from binary data from sql

Hi, I have binary data in my sql database that is of type image. Now I want to load this binary data to an image, have you any idea how I could do this? Thanks.

2
votes
1 answers

Overwrite part of existing Binary File

if I have a existing binary file of 20 bytes, and I want to replace (over-write) portion of that file, say 4 bytes, from index 10 to index 13, how could I do that? I understand that FileMode.Append could be used, but it always append at ...

Feedback