List Info

Thread: C-Sharp (C#) Group: Streamreader issues




C-Sharp (C#) Group: Streamreader issues
user name
2006-08-23 01:14:19
I am trying to input a file into an array of ints using the
streamReader. When reading using streamreader, it reads the
ascii
values and then when I store it into the int array, it
stores the ascii
values and not the ints. How do I make it store the ints
into the int
array and not the ascii values????? I have tried casting and
converting
etc,???


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharpgooglegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at http://groups.
google.com/group/C_Sharp
-~----------~----~----~----~------~----~------~--~---

C-Sharp (C#) Group: Re: Streamreader issues
user name
2006-08-25 08:59:13
Use BinaryReader instead of StreamReader.

BinaryReader has methods like ReadInt32() which should help

--
pravin
[http://www.dustyant.com]


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharpgooglegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at http://groups.
google.com/group/C_Sharp
-~----------~----~----~----~------~----~------~--~---

C-Sharp (C#) Group: Re: Streamreader issues
user name
2006-08-25 08:59:13
Use BinaryReader instead of StreamReader.

BinaryReader has methods like ReadInt32() which should help

--
pravin
[http://www.dustyant.com]


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharpgooglegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at http://groups.
google.com/group/C_Sharp
-~----------~----~----~----~------~----~------~--~---

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )