> I am still not clear on the use of USE: or USING: when I am coding in SciTE 
> and
> copying and pasting to the Listener. Also, now that I have a working bunch of
> code lines, I would like to be able to execute it, but when I type '"filename"
> run' or '"filename" load' it faults. I know I need t define a MAIN entry 
> point,
> and possibly turn my code into one big word (starting with ":" and ending with
> ";", or vocabulary, but I am not sure how yet.

USE: is for importing a single module, as in `USE: foo`. It's
primarily intended as a shorthand for interactive use. In source code
you should always write out USING: as in `USING: foo bar ;`.

> To continue with this task, I now need to figure out how to process a 
> directory
> of csv files, extract the same bits as above and append them in one big csv 
> file
> like so:
>
> 24/02/2012,1029,998
> 22/02/2012,1803,1799
> and so on...
>
> The big directory of csv files was created by running a Windows shell command,
> and then a Python OpenOffice-to-csv script from original Excel xls files. I
> would love to re-create that part by using only Factor.
>
> After I complete the task, I really want to go back over the code above and 
> see
> if I can make it more 'elegant' or 'Factorish'.

To iterate over the files in a directory, I would recommend looking at
the `with-directory-files` function, which will change to a directory
then call a quotation with a sequence containing the names of the
files in that directory. You should be able to just use `each` to
apply your existing code over that sequence.

-Joe

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to