Reading a block of data from a file
-
hi guys, I need help to read a block of data from a text file. I m using StreamReader object and its method ReadBlock, which is supposed to write certain number of characters into a char[] buffer, but when I debug the code actually the buffer is not being written, all the values are empty. Please help.
-
hi guys, I need help to read a block of data from a text file. I m using StreamReader object and its method ReadBlock, which is supposed to write certain number of characters into a char[] buffer, but when I debug the code actually the buffer is not being written, all the values are empty. Please help.
Show the code, including var declarations and initialization, plus any errors/exceptions. Does it work at all ? up to a point ? or what ? :)
Luc Pattyn [My Articles] [Forum Guidelines]