extern "string" filename = "export.txt";var f;var price;function init(){ f = new_object("file"); f.wopen(filename);} function calc(){ price = open; f.writeLn(price); line[0] = 0;}
extern "string" filename = "export.txt";var f;var price;var flag;function init(){ if (flag !=1) { f = new_object("file"); f.wopen(filename); f.close(); flag = 1; }} function calc(){ price = close; f = new_object("file"); f.waopen(filename); f.writeLn(price); f.close(); line[0] = 0;}
f = new_object("file"); f.waopen(filename);