🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #3194

Stream I/O in Windows

#3194
From: Keith A. McNabb
Date: Tue, 11 Jun 1991 19:08
15 lines
898 bytes
Has anyone found a way to use or emulate the C run-time stream I/O
functions, particularly fscanf().  Microsoft documentation suggests
using only the low-level read() and write() functions.  That's a lot of
bother if you're adapting existing code, as fscanf advances the file
pointer and recognizes EOF, something sscanf() doesn't do.

Obviously, one could make up a "fake" fscanf based on the size of 
the file and all.  I'm just trying to make sure I'm not re-inventing
the wheel here.

Any suggestions appreciated.

Keith McNabb
kam@iti.org
Technical Details
Message-ID: <1991Jun11.190819.13143@iti.org>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!hela!kam

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!hela!kam
From: kam@iti.org (Keith A. McNabb)
Newsgroups: comp.windows.ms.programmer
Subject: Stream I/O in Windows
Message-ID: <1991Jun11.190819.13143@iti.org>
Date: 11 Jun 91 19:08:19 GMT
Distribution: na
Organization: Industrial Technology Institute
Lines: 15