TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Mike Beaver
from: David Nugent
date: 1995-02-18 01:11:40
subject: Weird One

> All I'm trying to do is read data from a file byte by byte
 > and through it up on screen as pixels. Simple enough, right?
 > Wrong! The first 2 or 3 thousand bytes go fine but then all
 > other bytes are the same when I know that this not the case.
 > I know I'm not hitting the end of the file because its a 40k
 > file and I'm only pulling out 100x100 i.e. 10000 bytes!!!!!

Unfortunately you aren't specific, so it's stab-in-the-dark time, with a
1:20 chance against getting anywhere near right.

Are you opening the file in binary mode? 

What is the value of the byte you're reading (0xff?)?

Post some code which shows how you're reading it.

---
* Origin: Unique Computing, Melbourne, Australia (3:632/348)
SEEN-BY: 50/99 620/243 623/630 624/50 632/103 301 348 386 998 633/371 379
SEEN-BY: 634/384 635/301 502 503 541 544 636/100 639/100 711/401 409 410 430
SEEN-BY: 711/510 807 808 809 932 934 942 712/515 713/888 714/906 800/1
SEEN-BY: 7877/2809
@PATH: 632/103 348 635/503 50/99 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.