Click here to Skip to main content
15,921,179 members
Home / Discussions / C#
   

C#

 
AnswerRe: WebBrowser throws exception in Web Service Pin
Dustin Metzgar19-May-06 10:24
Dustin Metzgar19-May-06 10:24 
GeneralRe: WebBrowser throws exception in Web Service Pin
dpietro22-May-06 1:50
dpietro22-May-06 1:50 
AnswerRe: WebBrowser throws exception in Web Service Pin
Dustin Metzgar22-May-06 1:58
Dustin Metzgar22-May-06 1:58 
Questionbreak report - recommendations?? Pin
MarFarMa19-May-06 7:36
MarFarMa19-May-06 7:36 
AnswerRe: break report - recommendations?? Pin
MarFarMa19-May-06 9:31
MarFarMa19-May-06 9:31 
Questionform/control sizing Pin
reshsilk19-May-06 7:02
reshsilk19-May-06 7:02 
AnswerRe: form/control sizing Pin
leppie19-May-06 7:12
leppie19-May-06 7:12 
QuestionCreating an array from data in a file Pin
jrcook19-May-06 6:53
jrcook19-May-06 6:53 
Hello

I'm pretty new for the most part to programming in C# and I'm attempting to do something that I haven't been able to locate a solution for. Any help would be appreciated.

I have a text file with data in it that looks kind of like this:
BHG0002304050
BHG9459895944
BHG94859489568

I was able to write a snippet of code that would read that information into a string array so it looked like this:
Array[1] = BHG0002304050
Array[2] = BHG9459895944
Array[3] = BHG94859489568

However, I now want to separate each character within the array into it's own array... so it would look like this:
array1[1] = B
array1[2] = H
array1[3] = G
array1[4] = 0
etc.

I'm not sure I'm doing this the correct way so any help would be appreciated. If you have any suggestions on how to do this a different way then I'm explaining it I'm very open to ideas.

The reason for this is I will be using each of these characters in this datafile into a mathematical formula, each line represents a math formula... so I need to keep each line separate but I need to pull each character from each line if that makes sense.

thanks!
AnswerRe: Creating an array from data in a file Pin
leppie19-May-06 7:04
leppie19-May-06 7:04 
GeneralRe: Creating an array from data in a file [modifed] Pin
jrcook19-May-06 7:16
jrcook19-May-06 7:16 
AnswerRe: Creating an array from data in a file Pin
Scott Serl19-May-06 11:26
Scott Serl19-May-06 11:26 
QuestionFlickering-free!! Pin
Sirinao19-May-06 6:00
Sirinao19-May-06 6:00 
AnswerRe: Flickering-free!! Pin
leppie19-May-06 7:06
leppie19-May-06 7:06 
AnswerRe: Flickering-free!! Pin
Josh Smith19-May-06 7:13
Josh Smith19-May-06 7:13 
AnswerRe: Flickering-free!! Pin
Sirinao19-May-06 9:08
Sirinao19-May-06 9:08 
QuestionCreating a Vitual Drive Pin
Gonzalo Brusella19-May-06 5:26
Gonzalo Brusella19-May-06 5:26 
AnswerRe: Creating a Vitual Drive Pin
leppie19-May-06 7:14
leppie19-May-06 7:14 
GeneralRe: Creating a Vitual Drive Pin
Gonzalo Brusella19-May-06 7:19
Gonzalo Brusella19-May-06 7:19 
GeneralRe: Creating a Vitual Drive Pin
Dario Solera19-May-06 9:05
Dario Solera19-May-06 9:05 
Questionobject.GetType() -=Part II=- Pin
CombatRob19-May-06 5:00
CombatRob19-May-06 5:00 
AnswerRe: object.GetType() -=Part II=- Pin
Josh Smith19-May-06 5:04
Josh Smith19-May-06 5:04 
GeneralRe: object.GetType() -=Part II=- Pin
CombatRob19-May-06 5:52
CombatRob19-May-06 5:52 
Questionquestion about arrays Pin
donkaiser19-May-06 4:55
donkaiser19-May-06 4:55 
AnswerRe: question about arrays Pin
Kevin McFarlane19-May-06 5:20
Kevin McFarlane19-May-06 5:20 
GeneralRe: question about arrays Pin
donkaiser19-May-06 5:22
donkaiser19-May-06 5:22 

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.