Path: utzoo!utgpu!watmath!watcgl!grwalter From: grwalter@watcgl.waterloo.edu (Fred Walter) Newsgroups: comp.sys.amiga.tech Subject: lattice 4.01 bug ? or am I confused.... Message-ID: <7489@watcgl.waterloo.edu> Date: 30 Dec 88 17:24:28 GMT Distribution: comp Organization: U of Waterloo, Ontario Lines: 33 I attempted to open a RAW window for i/o using Lattice's fopen function. I can read from the window, but for some reason I can't write to the window. Below is a code fragment that displays the problem. I eventually worked around the problem by using AmigaDOS Open/Read/Write commands, but I would prefer to use the buffered stdio commands if I can. Oh ya, if anybody wants it, I now have a version of STEVIE that you can RUN (as well as a few minor bug fixes). I'll post an updated version later (once I've added a few things, like :g, :d and maybe even :s). fred --------------------- #include void main() { FILE *raw_io; int c; raw_io = fopen("RAW:0/0/320/200/STEVIE", "w+"); c = 0; while (c != 'q') { c = fgetc(raw_io); fprintf(raw_io, "%x ", c); fflush(raw_io); fprintf(stdout, "%x ", c); fflush(stdout); } fclose(raw_io); }