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

C#

 
AnswerRe: generic collection Pin
N a v a n e e t h3-Jul-08 1:47
N a v a n e e t h3-Jul-08 1:47 
QuestionUsing a C++ LIB in C# Pin
indogerman3-Jul-08 1:21
indogerman3-Jul-08 1:21 
AnswerRe: Using a C++ LIB in C# Pin
leppie3-Jul-08 2:11
leppie3-Jul-08 2:11 
QuestionNeed help coding a MathML to C# converter Pin
Dmitri Nеstеruk3-Jul-08 0:13
Dmitri Nеstеruk3-Jul-08 0:13 
AnswerRe: Need help coding a MathML to C# converter Pin
leppie3-Jul-08 2:16
leppie3-Jul-08 2:16 
GeneralRe: Need help coding a MathML to C# converter Pin
Dmitri Nеstеruk3-Jul-08 5:16
Dmitri Nеstеruk3-Jul-08 5:16 
AnswerRe: Need help coding a MathML to C# converter Pin
leppie3-Jul-08 2:17
leppie3-Jul-08 2:17 
Questionbyte[] to ArrayList Pin
Rick van Woudenberg3-Jul-08 0:10
Rick van Woudenberg3-Jul-08 0:10 
Dear all,

I'm stuck once again and calling on you for aid. I want to convert a byte array to an arraylist. I managed to write some code that will put my byte[] data in a file :

Byte[] result = (Byte[])foundRows[0]["bin_file"];
using (BinaryWriter binWriter = new BinaryWriter(File.Open("@C:\test.txt", FileMode.Create)))
{
    binWriter.Write(result);
}


This works fine but I would like to write it to an ArrayList so I can process it from there. Reading it back from the file into an ArrayList seems unlogical for me and unneccesary too.


ArrayList list = new ArrayList();
StreamReader se = new StreamReader("@C:\test.txt");
string line = se.ReadLine();
while (line != null)
{
    list.Add(line);
    //Read the next line
    line = se.ReadLine();
}

se.Close();



Can somebody point me in the right direction on how to tackle this problem ? With other words, how can I put my byte[] data directly into an ArrayList.

Kind regards,

Rick
AnswerRe: byte[] to ArrayList Pin
Simon P Stevens3-Jul-08 0:22
Simon P Stevens3-Jul-08 0:22 
AnswerRe: byte[] to ArrayList Pin
N a v a n e e t h3-Jul-08 0:25
N a v a n e e t h3-Jul-08 0:25 
QuestionTranslation of Java Error class to C# Pin
jluber2-Jul-08 23:50
jluber2-Jul-08 23:50 
AnswerRe: Translation of Java Error class to C# Pin
leppie3-Jul-08 2:21
leppie3-Jul-08 2:21 
GeneralRe: Translation of Java Error class to C# Pin
jluber3-Jul-08 2:28
jluber3-Jul-08 2:28 
QuestionHow can I Verify Serial Key in Setup and Deployment Project Pin
Sifar - 02-Jul-08 23:39
Sifar - 02-Jul-08 23:39 
Questiondatatable issue Pin
Tauseef A2-Jul-08 23:37
Tauseef A2-Jul-08 23:37 
AnswerRe: datatable issue Pin
Rick van Woudenberg3-Jul-08 0:16
Rick van Woudenberg3-Jul-08 0:16 
AnswerRe: datatable issue Pin
Vimalsoft(Pty) Ltd3-Jul-08 0:24
professionalVimalsoft(Pty) Ltd3-Jul-08 0:24 
QuestionMSMQ 3.0 & .NET issue (Max limit over size of total messages to be stored in MSMQ) Pin
Vaibhav.j20072-Jul-08 23:32
Vaibhav.j20072-Jul-08 23:32 
AnswerRe: MSMQ 3.0 & .NET issue (Max limit over size of total messages to be stored in MSMQ) Pin
leppie3-Jul-08 2:22
leppie3-Jul-08 2:22 
GeneralRe: MSMQ 3.0 & .NET issue (Max limit over size of total messages to be stored in MSMQ) Pin
Vaibhav.j20073-Jul-08 2:48
Vaibhav.j20073-Jul-08 2:48 
GeneralRe: MSMQ 3.0 & .NET issue (Max limit over size of total messages to be stored in MSMQ) Pin
leppie3-Jul-08 3:59
leppie3-Jul-08 3:59 
QuestionRadCombobox not populating fine Pin
omlac2-Jul-08 23:31
omlac2-Jul-08 23:31 
AnswerRe: RadCombobox not populating fine Pin
Pete O'Hanlon3-Jul-08 0:27
mvePete O'Hanlon3-Jul-08 0:27 
AnswerRe: RadCombobox not populating fine Pin
omlac3-Jul-08 1:05
omlac3-Jul-08 1:05 
Questionretrieving field from the database. Pin
r aa j2-Jul-08 23:24
r aa j2-Jul-08 23:24 

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.