Click here to Skip to main content
15,890,123 members
Home / Discussions / C#
   

C#

 
AnswerRe: Help me to convert this code in Java into a C# code Pin
Nathan Revka11-Jul-09 12:55
Nathan Revka11-Jul-09 12:55 
QuestionSearching a string in a binary file using BinaryReader Pin
SimpleData11-Jul-09 8:08
SimpleData11-Jul-09 8:08 
AnswerRe: Searching a string in a binary file using BinaryReader Pin
Eddy Vluggen11-Jul-09 8:28
professionalEddy Vluggen11-Jul-09 8:28 
GeneralRe: Searching a string in a binary file using BinaryReader [modified] Pin
SimpleData11-Jul-09 8:49
SimpleData11-Jul-09 8:49 
GeneralRe: Searching a string in a binary file using BinaryReader [modified] Pin
Eddy Vluggen11-Jul-09 10:32
professionalEddy Vluggen11-Jul-09 10:32 
GeneralRe: Searching a string in a binary file using BinaryReader Pin
Luc Pattyn11-Jul-09 14:08
sitebuilderLuc Pattyn11-Jul-09 14:08 
GeneralRe: Searching a string in a binary file using BinaryReader Pin
Eddy Vluggen12-Jul-09 0:54
professionalEddy Vluggen12-Jul-09 0:54 
GeneralRe: Searching a string in a binary file using BinaryReader Pin
Luc Pattyn12-Jul-09 5:20
sitebuilderLuc Pattyn12-Jul-09 5:20 
Yes, if you know the string you want to find, converting it to bytes and then search bytes would be fastest. One would need to do this at least twice to accommodate for both ASCII and Unicode.

OTOH getting "all" the strings from a file works best the other way around: check a sequence of bytes for appropriate values (e.g. between 32 and 127, possibly alternating with zeros) and some mimimum length; doing it this way will miss all special characters, say the accented e, Euro/Pound sign, etc.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

GeneralRe: Searching a string in a binary file using BinaryReader Pin
OriginalGriff11-Jul-09 10:48
mveOriginalGriff11-Jul-09 10:48 
GeneralRe: Searching a string in a binary file using BinaryReader Pin
harold aptroot11-Jul-09 13:19
harold aptroot11-Jul-09 13:19 
QuestionTime values in arraylist Pin
Member 398136611-Jul-09 3:39
Member 398136611-Jul-09 3:39 
AnswerRe: Time values in arraylist Pin
Henry Minute11-Jul-09 3:52
Henry Minute11-Jul-09 3:52 
GeneralRe: Time values in arraylist Pin
PIEBALDconsult11-Jul-09 7:04
mvePIEBALDconsult11-Jul-09 7:04 
QuestionRe: Time values in arraylist Pin
PIEBALDconsult11-Jul-09 4:23
mvePIEBALDconsult11-Jul-09 4:23 
Questionhi.. Pin
mjawadkhatri11-Jul-09 1:30
mjawadkhatri11-Jul-09 1:30 
AnswerRe: hi.. Pin
OriginalGriff11-Jul-09 1:42
mveOriginalGriff11-Jul-09 1:42 
AnswerRe: hi.. Pin
Christian Graus11-Jul-09 2:15
protectorChristian Graus11-Jul-09 2:15 
GeneralRe: hi.. Pin
EliottA11-Jul-09 18:40
EliottA11-Jul-09 18:40 
GeneralRe: hi.. Pin
Baeltazor12-Jul-09 2:52
Baeltazor12-Jul-09 2:52 
QuestionSpeed up performance Pin
gehbitte11-Jul-09 0:55
gehbitte11-Jul-09 0:55 
AnswerRe: Speed up performance Pin
Henry Minute11-Jul-09 1:03
Henry Minute11-Jul-09 1:03 
AnswerRe: Speed up performance Pin
Nicholas Butler11-Jul-09 1:38
sitebuilderNicholas Butler11-Jul-09 1:38 
GeneralRe: Speed up performance [modified] Pin
gehbitte11-Jul-09 2:23
gehbitte11-Jul-09 2:23 
GeneralRe: Speed up performance Pin
harold aptroot11-Jul-09 2:33
harold aptroot11-Jul-09 2:33 
GeneralRe: Speed up performance [modified] Pin
gehbitte11-Jul-09 2:49
gehbitte11-Jul-09 2:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.