Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Don't understand basic concept...please help

 [1/2] from: jwirt::toward::com at: 14-Jun-2001 9:01


Can someone fix this simple script. It would help me get a basic understanding of the Rebol programming concept. Here is the script I wrote run: -------beg test.r REBOL [ Title: "Test script" File: %test.r Author: "jwirt" Date: 20-May-2001 Purpose: { Load a message text file located at pathname and email to text file of addresses. The address file is located in the Rebol directory. The message text file is not. ] messagefile: load system/script/args change-dir %/k/internettools/rebol/ members: load %addresses.txt send members read load %messagefile --------end test.r The script, test.r is located in the Rebol directory, too. The script is run using the command: rebol test.r /g/psa106/nanew.txt I get this error. ... HTTP protocol loaded FTP protocol loaded NNTP protocol loaded Script: "User Preferences" (20-May-2001/21:00:46-4:00) Script: "Test script" (20-May-2001) ** Access Error: Cannot open /k/internettools/rebol/messagefile ** Where: do-boot ** Near: send members read %messagefile
>>
Apparently I do not understand how to load the pathname as a series and then read it in the last statement. Thanks for any help. John Wirt

 [2/2] from: cyphre:volny:cz at: 14-Jun-2001 15:28


Hello John. here is just quick solution(not tested) change this line: send members read load %messagefile for: send members messagefile and this would be enough I think. %messagefile is file! but you have already load it into 'messagefile variable... Regards, Cyphre