Song, Input/output error #214 is fairly rare. In write() it seems to be triggered by a few conditions, including ferror() returning true, which seems to be the case in the example you report. A less likely possibility is that fwrite() was failing (less likely because that should produce an error message with an "offending value" not appearing in your error message).
I/O errors might normally come from a disk medium being full or faulty. I did not see anything wrong in your Unicon code. Another, less likely possibility, is that the C library functions fail on certain data patterns. [Song Lu writes, in inscrutable base64 encoding:] > Good morning, Unicon group, > I ran a code in Unicon. There is one strange phenomenon. > The code (write() )on one line sometimes ran correctly, sometimes ran > error, even if runing in one program with every circle. > ----------- the return from Unicon --------- > Run-time error 214 > File getinfo_villas.0.9.icn; Line 85 > input/output error > Traceback: > main(list_1 = ["0","109"]) > write(file(villas.html),"<vf-city>","\xb1\xb1\xbe\xa9","</vf-city>") from > line 85 in getinfo_villas.0.9.icn > ------------------------------------------- > And the code as followed: > ---------------------------------------------------------------------- > 84 write(p_info_houses,"<vf-house>") > 85 write(p_info_houses,"<vf-city>",vf_city,"</vf-city>") > 86 write(p_info_houses,"<vf-url>",vf_url,"</vf-url>") > 87 write(p_info_houses,"<vf-dist.>",vf_district,"</vf-dist.>") > 88 write(p_info_houses,"<vf-add.>",vf_add,"</vf-add.>") > 89 write(p_info_houses,"<vf-phone>",vf_phone,"</vf-phone>") > 90 write(p_info_houses,"<vf-time>",vf_time,"</vf-time>") > 91 write(p_info_houses,"<vf-html>\n",vf_html,"\n</vf-html>") > 92 write(p_info_houses,"</vf-house>\n\n") > > --------------------------------------------------------------------- > Maybe you could tell me the reason. > Thanks. > Lu ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Unicon-group mailing list Unicon-group@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/unicon-group