c++ - Ruby 2.0 CSV write special permissions? -
i wrote script in ruby (ruby 2.0 on winxp, 32 bit) query database , write results csv-file. works fine long call script cmd or batch file. when call script programm (controller robotics platform) can database query i'm not able write csv. part of code use create , write csv:
csv.open('out.csv', 'wb') |csv| csv << ["barcode", "labid", "obtained", "freezed", "sz", "comment"] csv << [barcode, labid1, obt1, freezed1, sz1, comment1] end
this creates csv-file headers , corresponding data. quite simple , works cmd , out of batch files not robotics controller uses kind of c-code. strange thing can parse data robot script , data executed in script (i can control in console) i'm not able last step create file through robotics controller. special case maybe came across similar ? appreciate help. thanks.
Comments
Post a Comment