Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Ruby (http://www.programmingforums.org/forum63.html)
-   -   How is Ruby with file handling (http://www.programmingforums.org/showthread.php?t=15122)

Drenlin Feb 5th, 2008 3:11 PM

How is Ruby with file handling
 
I am looking to progress my programming knowledge out of the dark ages and into something more modern (and to higher levels) but I am unsure which method of scripting to choose. Having heard things regarding Ruby I was wondering if someone could advise if things are possible. I have learnt java but mostly been creating routines for the Windows command prompt due to knowing tasks are possible. I figured a good way to start a new lanuage is to attempt what know from another language/script.

I am aiming for a script to be ran locally on other stations (without having to install web servers) that can look, delete and copy files but also start an application (with parameters). A bonus is being able to create encrypted zip files.

PHP has exec() but seems to require a web server. Java (at my last look) was not able to run a local executable file with parameters (and took ages to start).

Am I on the verge of joining the Ruby bandwagon or just wishfully thinking on inflated expectations. Alternately if you know of a different tree sniff then please comment.

Thanks in advanced

MiKuS Feb 5th, 2008 3:46 PM

Re: How is Ruby with file handling
 
I would suggest looking into python, there are heaps of modules already out there - so stuff like managing zip files and files in general shouldn't be too much of a problem

titaniumdecoy Feb 5th, 2008 3:48 PM

Re: How is Ruby with file handling
 
You might want to consider Python. It is very similar to Ruby but has a much larger user base which will make it easier to get help.

EDIT: MiKuS beat me to it.

Drenlin Feb 5th, 2008 5:19 PM

Re: How is Ruby with file handling
 
It didn't matter who replied first, just that the reply being friendly and helpful.
Thanks both and I shall look into it.
I'll save Ruby for later.


All times are GMT -5. The time now is 2:12 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC