3
Answers

To read data from a file and store in an array

brian dsouza

brian dsouza

8y
324
1
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)