Telerik Forums
Telerik Document Processing Forum
3 answers
165 views
Hey guys, I got the following stored in a text (.txt) file, which is, of course, zipped:
Hello World!

However, if I read the file like:
ZipInputStream zis = new ZipInputStream(entry.OpenInputStream());                             
StreamReader streamReader = new StreamReader(zis);                             
String text = streamReader.ReadToEnd();

The string (text) is:
ello World!

Am I doing something wrong or is this a bug (a read() instead of a peek() somewhere)?

Thank you!
Petar Mladenov
Telerik team
 answered on 25 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?