lulue@manta.NOSC.MIL (Dan Lulue ) (10/12/89)
I need to open a file via stdio fopen. How do I map the info returned by SFGetFile to a full pathname string?? Thanks. Dan Lulue luleu@nosc.mil
hoppmain@doc.ic.ac.uk (Hope Plus Maintenance) (10/12/89)
I have an extended LSC 3 stdio library which I wrote that modifies fopen() to accept the pseduo filename ".SF", this enables you to use: fopen(".SF", "r") instead of: SFGetFile(....) ... convert SFReply -> pathname ... fopen(pathname, "r") This also works for freopen() etc. Modes "r" & "a" -> SFGet, "w" -> SFPut. I thought I sent this to Sumex, I either didn't, it got lost, or was rejected - dunno which. If you'd like a copy then email me, I'll wait and see how many requests I get, if a lot I'll try Sumex again, if not I'll post to individuals (with possible request to pass it on, to save long distance email traffic). Nigel P.S. This modified library is supplied WITHOUT source to protect THINK's copyright. Printf() is also modified to add %k & %lk for printing int/long as chars (= ResType). --- Nigel Perry Department of Computing Imperial College Janet: np@uk.ac.ic.doc London DARPA: np%uk.ac.ic.doc@ucl-cs SW7 Uucp: np@icdoc.UUCP, ukc!icdoc!np England