varsha

varsha

  • NA
  • 46
  • 6.2k

Read first number from read line in windows form

Nov 23 2017 9:37 AM
I have a text file contain :
10 2 3
20 4 5 
25 1 0
6 0 0
 
i have read the whole file into a richtextBox, now i need to read each number from each line and assign them to a function.
eg: length = 10
height = 2;
width = 3.
 
can anyone tell me how to read each element in the line, I am finding only ReadTo end anf ReadLine option. I am not getting how to read each element and initialize to a function.

Answers (3)