Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!timbuk!cs.umn.edu!sctc.com!stachour From: stachour@sctc.com (Paul Stachour) Newsgroups: comp.sources.wanted Subject: Named-IO / Namelist-IO Message-ID: <1990Oct10.212302.19230@sctc.com> Date: 10 Oct 90 21:23:02 GMT Organization: Secure Computing Technology Corporation Lines: 37 I am looking for source (perferably in C) [but would translate the algorithm from another language] that will allow me to do "named-io". This ability is known in PL/I as "data directed IO" and in FOTRAN as "namelist IO". ---- From the top-level viewpoint, one can read a stream with items like: QStr := "ABC"; XInt = 7; ZCmplx = (13.1, 17.2 ); and have each value assigned to the variable with the given name. ---- From a low-level viewpoint, given a stream and a set-of-tripples of the form [Variable-Name, Variable-Type, Variable-Address], one can 1) Match on the name to find the appropriate tripple. 2) Convert the value in the input-stream to the appropriate type. 3) Stote said value at the given address. ---- Any and all hints for location of said function appreciated. ...Paul -- Paul Stachour Secure Computing Technology Corp stachour@sctc.com 1210 W. County Rd E, Suite 100 Arden Hills, MN 55112 [1]-(612) 482-7467