Innov-AI
    Documentation | MentDB Weak Server
Write a text file

  • -> "[destination]" "/Users/jimmitry/Desktop/copy.txt";
    
    try {
    
    	file writer_open "w1" [destination] false TEXT "utf-8";
    
    	file writer_add_line "w1" "Data...";
    	file writer_add_line "w1" (concat "date=" (date sysdate));
    	file writer_add_line "w1" [_n_] [_r_];
    
    	#Force to write;
    	file writer_flush "w1";
    	
    	file writer_close "w1";
    
    } {
    
    	#Close objects;
    	try {file writer_close "w1";} {} "[sub_err]";
    
    	#Generate an error;
    	exception (1) ([err]);
    
    } "[err]";
Services     Supporters     Contact     About     Legal notice © 2024