home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / programm / 5266 < prev    next >
Encoding:
Text File  |  1992-11-12  |  1.1 KB  |  28 lines

  1. Newsgroups: comp.unix.programmer
  2. Path: sparky!uunet!drd!mark
  3. From: mark@drd.com (Resident.Alien)
  4. Subject: Getting ready to use sfio: Any gotchas?
  5. Message-ID: <1992Nov12.232850.13811@drd.com>
  6. Organization: DRD Corporation
  7. Date: Thu, 12 Nov 1992 23:28:50 GMT
  8. Lines: 18
  9.  
  10.  
  11. I'm getting ready to employ the sfio library functions.  I've got a
  12. situation where some client code writes a line-oriented temporary
  13. file and then turns right around and hands the pathname to a library
  14. function that immediately slurps the contents of the file in
  15. line-oriented mode, formats into sql insert/update statements as
  16. appropriate and passes it down a connection to an rdbms back-end.
  17.  
  18. I was thinking that this was a golden opportunity to exercise sfio's
  19. SF_STRING|SF_LINE type of stream and hand the stream handle across the
  20. library call.
  21.  
  22. Anybody have any gotcha's before I pile in?  I'm interested in
  23. establishing contact with other sfionauts.
  24.  
  25. -- 
  26. mark.lawrence@drd.com                                     (918)743-3013
  27. DRD Corp., 5506 South Lewis Ave., Tulsa, OK 74105         (918)745-9037 fax
  28.