terça-feira, 16 de dezembro de 2008

Ruby scripts

Hello all!

As I have promissed I will post here some Ruby scripts, nothing really amazing but I thing that it could be a nice startup for Ruby studing and it could be useful for someone.

The purpose of the script is to generate random files, with fixed record size (like those used by COBOL programs). The zip has three files:
  • FileCreator.rb: the program itself, it is responsible to create the file, you script should refer to it;
  • TestFileCreator.rb: the test case, we never forget about it; and
  • CreateFile.rb: an example of how to use the program, it is the script itself, if you want to run something start with this.
You can download it here.

I hope it could help you somehow.

See you soon!

Nenhum comentário: