| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -316,11 +316,10 @@ def OpenDocument(self): | |||
| 316 | 316 | ||
| 317 | 317 | buff = System.Array.CreateInstance(System.Byte, 1024) | |
| 318 | 318 | data = [] | |
| 319 | - read = -1 | ||
| 320 | 319 | ||
| 321 | - while (read != 0): | ||
| 320 | + while stream.Position < stream.Length: | ||
| 322 | 321 | buff.Initialize() | |
| 323 | - read = stream.Read(buff, 0, 1024) | ||
| 322 | + stream.Read(buff, 0, 1024) | ||
| 324 | 323 | temp = Encoding.ASCII.GetString(buff, 0, 1024) | |
| 325 | 324 | data.append(temp) | |
| 326 | 325 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments