views:

47

answers:

1

I am trying to write excel file by using ruby 1.9 spreadsheet version 0.6.4.1 on windows. Everything is going ok, until I get to the book.write statement when I write book.write "c:/spreadsheet/excel-file.xls I keep getting the following error No such file or directory - c:/spreadsheet/excel-file.xls when i am runing it from the ruby console i get the error errono::EINVAL invalid argument. when i check in the path i see that a file was created but althought i write to it its empty

Can anyone tell me what should I do?

Thanks

+1  A: 

Don't use windows!

According to http://pullmonkey.com/2008/02/19/errno-einval-invalid-argument/

STDOUT is nonexistent if you run mongrel as a service under windows, and errono::EINVAL is the result.

Aaron Qian