brian dsouza

brian dsouza

  • NA
  • 6
  • 2.5k

To read data from a file and store in an array

Mar 3 2016 8:33 PM
hello friends
 
 I am new to c# and i want to know how to read contents from a file and store in an array not word by word but depending on the no of characters including space
example:
string:Hi how are you? 
packet size:4
then i shall get: a[0]=hi h  
                             a[1]=ow a
                              a[2]=re y
                              a[3]=ou? 
please help
 
thanks 

Answers (3)