.------[ Paul Tremblay wrote (2002/08/21 at 13:06:55) ]------
 | 
 |  I am writing a script that converts RTF to XML, and this script needs
 |  to read an external data file to form a hash. I plan to make this
 |  script available to anyone who needs it, and am wondering what to do
 |  with this external data file. 
 |  
 |  Should I simply make the data file available with the script and tell
 |  the user where to put it? Right now, I have it in
 |  /usr/share/rtf2xml/char_data.data. 
 |  
 |  How about on a Windows system, which I don't know much about? 
 |  
 |  Should I write a scrpt that creates a directory and puts the data file
 |  in that directory? What is the standard procedure here? 
 |  
 |  Also, the script outputs to standard output. Future versions might
 |  require that the script make one run through the file, write to a temp
 |  file, then make a run through the temp file. Where should I put this
 |  temp file (if I need to make one, that is)?
 |  
 `-------------------------------------------------

    If we're talking about a Unix system then I would create a
    configuration file for the script or have it accept commandline
    arguments to define where the data and temp files should go. 

    I'm not familiar with Windows so I wouldn't be much help there. 

 ---------------------------------
   Frank Wiles <[EMAIL PROTECTED]>
   http://frank.wiles.org
 ---------------------------------


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to