Click here to Skip to main content
15,889,931 members
Home / Discussions / C#
   

C#

 
GeneralRe: Help me to convert this code in Java into a C# code Pin
Member 333548911-Jul-09 16:14
Member 333548911-Jul-09 16:14 
GeneralRe: Help me to convert this code in Java into a C# code Pin
DaveyM6912-Jul-09 7:57
professionalDaveyM6912-Jul-09 7:57 
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 
Hi,

I don't agree. Your code assumes all the file data is text; if it is, why use a BinaryReader at all? if it isn't, you need to interpret the binary data to locate the parts that are supposed to be strings, then treat those with code similar to yours, making sure to obey the string conventions in the file (length+content, content+NULL, whatever).

And if you don't know the file format, or just want to find everything that might be a string, then you must check for ASCII or Unicode characters explicitly, you can't just feed arbitrry binary data to an Encoder.

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
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 
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 

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.