home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / bit / listserv / toolbl / 9 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.8 KB  |  40 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!uvaarpa!darwin.sura.net!paladin.american.edu!auvm!ARIZVMS.BITNET!JHALL
  3. X-Envelope-to: TOOLB-L@UAFSYSB.BITNET
  4. X-VMS-To: IN%"TOOLB-L@UAFSYSB.BITNET"
  5. MIME-version: 1.0
  6. Content-transfer-encoding: 7BIT
  7. Message-ID: <01GTZ9GU1T828Y7C4W@CCIT.ARIZONA.EDU>
  8. Newsgroups: bit.listserv.toolb-l
  9. Date:         Tue, 26 Jan 1993 15:28:01 -0700
  10. Sender:       Asymetrix 'Toolbook' product discussions <TOOLB-L@UAFSYSB.BITNET>
  11. From:         JHALL@ARIZVMS.BITNET
  12. Subject:      Re: Writing files
  13. Lines: 25
  14.  
  15. Re: writing files from Toolbook.  A couple of followup questions
  16. to Graham about writing to files.  I have done quite a bit of this
  17. and had no problems BUT,
  18.  
  19. Have to be carefule about creating a file that does not exist in
  20. name already.  I don't remember the exact problem but using the
  21. protect parameter caused problems for me. The results (if I did not
  22. erase the old file with the same name) before I tested the script
  23. again would be to not create a file and simply leave me with the old
  24. file with nothing it.  Similar to what you have.  So at least during
  25. debugging phase, be sure to erase the old file when you create.
  26.  
  27. I am also extremely careful about writing then closing the file then
  28. opening the file up again to write new information (say a new page
  29. or whatever).  I never leave the file open for an extended period of
  30. time and it has been 100% reliable.
  31.  
  32. So, have you tried creating a file, then just alternate among the
  33. openfile, writefile, closefile commands to accomplish the task.  What
  34. I usually do is upon subject id at the beginning of the survey, I create
  35. the file then close it and then for the rest of the application
  36. use open/write/close sequence.
  37.  
  38. So what is my question?? Just what sequence are you using to accomplish
  39. the writing to files.  We'll deal with the network issue next.
  40.