Click here to Skip to main content
15,915,050 members
Home / Discussions / C#
   

C#

 
AnswerRe: String Concatenation Pin
#realJSOP31-Dec-08 4:37
professional#realJSOP31-Dec-08 4:37 
GeneralRe: String Concatenation Pin
Guffa1-Jan-09 2:43
Guffa1-Jan-09 2:43 
GeneralRe: String Concatenation Pin
#realJSOP2-Jan-09 8:59
professional#realJSOP2-Jan-09 8:59 
AnswerRe: String Concatenation Pin
Ravi Bhavnani31-Dec-08 7:25
professionalRavi Bhavnani31-Dec-08 7:25 
AnswerRe: String Concatenation Pin
Guffa31-Dec-08 16:12
Guffa31-Dec-08 16:12 
Questionplz help me about this Algo Pin
wasimsharp30-Dec-08 22:00
wasimsharp30-Dec-08 22:00 
AnswerRe: plz help me about this Algo Pin
Eddy Vluggen2-Jan-09 2:15
professionalEddy Vluggen2-Jan-09 2:15 
QuestionRead From file data till reach ‘\0’ Pin
Ronenb30-Dec-08 20:39
Ronenb30-Dec-08 20:39 
Hi I need to convert c code to C#,
I need to open a file, read strings and init local members.
The file is composed of strings and ‘\0’ between each string
How can I read string while the indication of end of string is ‘\0’?
The c code is
int MAX_STR = 200;
byte[] comment = new byte[MAX_STR];
fread( (char*)& comment, sizeof(comment),1,file);

C# code that I Try is
int MAX_STR = 200;
byte[] comment = new byte[MAX_STR];
comment = m_brSWL.ReadBytes(MAX_STR);

but the array is not init with the string
I also try readChar but it read also the second string , not till uit reach ‘\0’

Any Idea?
Thanks
Ronen
AnswerRe: Read From file data till reach ‘\0’ Pin
Lev Danielyan30-Dec-08 20:44
Lev Danielyan30-Dec-08 20:44 
AnswerRe: Read From file data till reach ‘\0’ [modified] Pin
PIEBALDconsult31-Dec-08 4:43
mvePIEBALDconsult31-Dec-08 4:43 
AnswerRe: Read From file data till reach ‘\0’ Pin
PIEBALDconsult31-Dec-08 6:06
mvePIEBALDconsult31-Dec-08 6:06 
GeneralRe: Read From file data till reach ‘\0’ Pin
Ronenb31-Dec-08 19:10
Ronenb31-Dec-08 19:10 
Questionhow to get index in checkboxlist control by passing data value membet Pin
ademsandeepreddy30-Dec-08 20:14
ademsandeepreddy30-Dec-08 20:14 
QuestionLocking Screen! Pin
spiritboy30-Dec-08 19:59
spiritboy30-Dec-08 19:59 
AnswerRe: Locking Screen! Pin
Giorgi Dalakishvili30-Dec-08 20:11
mentorGiorgi Dalakishvili30-Dec-08 20:11 
GeneralRe: Locking Screen! Pin
Michael Bookatz31-Dec-08 1:55
Michael Bookatz31-Dec-08 1:55 
GeneralRe: Locking Screen! Pin
Giorgi Dalakishvili31-Dec-08 4:07
mentorGiorgi Dalakishvili31-Dec-08 4:07 
AnswerRe: Locking Screen! Pin
vaghelabhavesh31-Dec-08 8:16
vaghelabhavesh31-Dec-08 8:16 
Questionhow to write code for browse button Pin
NarVish30-Dec-08 19:54
NarVish30-Dec-08 19:54 
AnswerRe: how to write code for browse button Pin
Giorgi Dalakishvili30-Dec-08 20:12
mentorGiorgi Dalakishvili30-Dec-08 20:12 
AnswerRe: how to write code for browse button Pin
ashok104230-Dec-08 23:37
ashok104230-Dec-08 23:37 
GeneralRe: how to write code for browse button Pin
Not Active31-Dec-08 5:42
mentorNot Active31-Dec-08 5:42 
GeneralRe: how to write code for browse button Pin
ashok104231-Dec-08 23:57
ashok104231-Dec-08 23:57 
QuestionTextbox Event Pin
Nath30-Dec-08 19:46
Nath30-Dec-08 19:46 
AnswerRe: Textbox Event Pin
vaghelabhavesh31-Dec-08 8:20
vaghelabhavesh31-Dec-08 8:20 

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.