Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!know!samsung!uakari.primate.wisc.edu!dali.cs.montana.edu!milton!efowler From: efowler@milton.u.washington.edu (Eric Fowler) Newsgroups: comp.windows.ms Subject: Simple file IO in Windows3.0 Message-ID: <8807@milton.u.washington.edu> Date: 9 Oct 90 00:45:19 GMT Distribution: all Organization: University of Washington, Seattle Lines: 12 I have recently been trying to write a file IO routine that simply opens a file of ASCII text and reads it in one line at a time. In vanilla C, this is a trivial task with the fgets() function. However, using fgets() with the SDK earns me an instantaneous UAE in windows. I assume this is a compatibility problem involving the stack. On the other hand, using the Windows function _lread() does not allow me to bring the data in linewise-I only get a fixed number of characters. If you want to bring in file data line by line in windows, what is the easiest way to go about it? I find it hard to swallow that you have to give this up to program in windows, but I still can't find the function I need in the SDK. Any help mucho appreciated. Thanks, =Eric