savecsv - Stores arrays to a comma-separated file.
savecsv(input,file,delimiter,enclosure,escape,error)
if savecsv( [ ['title1','title2',1.5], ['aaa',123,2.6], [124,'dfg'] ] ,'/test.csv',v) == true then "true"; else "Can't save CSV"; v; endif; if savecsv( [ ['title1','title2',1.5], ['aaa',123,2.6], [124,'dfg'] ] ,'/test.csv',v) == true then v.errcode; else "Can't save CSV"; v; endif; if savecsv( [ ['title1','title2',1.5], ['aaa',123,2.6], [124,'dfg'] ] ,'/test.csv') == true then v; else "Can't save CSV"; v; endif; if savecsv( input:[ ['title1','title2',1.5], ['aaa',123,2.6], [124,'dfg'] ] ,file:'../../../../test.csv',error:v) == true then "true"; else v; endif
{{ include("includes/strings.sn") }}
Written by Pusnei Sergey and Caroline Laplante, <sergey@sednove.com>
1.0 2014-09-09 21:24:14 laplante@sednove.com
Edit© 2024 extenso Inc. All rights reserved.