Article View: comp.sys.next.programmer
Article #1345help with streams please
From: James Vincent Schultz
Date: Thu, 08 Oct 1992 05:12
Date: Thu, 08 Oct 1992 05:12
24 lines
1197 bytes
1197 bytes
I'm just starting out as a NeXT programmer, so please forgive me if I'm missing something obvious. I'd like to use the NXReadTypes & NXWriteTypes functions to temporarily store some instance variables in memory. I looked in NeXT Concepts and the NeXTStep Reference to come up with the idea of opening a memory stream, converting that to a typed stream, and passing that to my object. This is great except that you have to open a stream NX_READONLY or NX_WRITEONLY. I can't figure out how to do both. I want to write to a stream, then come back a while later and read the values back. How can I read & write a stream? Thanks in advance, James -- James Schultz Carnegie Mellon University js3b+@andrew.cmu.edu
Technical Details
Message-ID:
<4ep3D7i00iUxE1J0Yj@andrew.cmu.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!js3b+Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!js3b+ From: js3b+@andrew.cmu.edu (James Vincent Schultz) Newsgroups: comp.sys.next.programmer Subject: help with streams please Message-ID: <4ep3D7i00iUxE1J0Yj@andrew.cmu.edu> Date: 8 Oct 92 05:12:39 GMT Article-I.D.: andrew.4ep3D7i00iUxE1J0Yj Organization: Junior, Math/Computer Science, Carnegie Mellon, Pittsburgh, PA Lines: 24