If the file has no carriage return and you to want read the records by its record length then use this code snippet.
char[] buf = new char[bytesToCheck];
sr.Read(buf,0,bytesToCheck);
string toTest = new String(buf);
Quick Notes for easy understanding. Chapters are on C#.Net,Linq,OOPS,Design Patterns,UML,Tools for development, Databases and many others. - Sid
Paste Here Your Source Code | ||||||||||||||
Source Code Formatting Options | ||||||||||||||
|
||||||||||||||
Copy Formatted Source Code | ||||||||||||||
Preview Of Formatted Code |
No comments:
Post a Comment