.
D 2007-01-04T03:38:29
J icomment Logged\sIn:\sYES\s\nuser_id=1245417\nOriginator:\sYES\n\nI\sunderstand\syour\sanswer\sand\sI\sthank\syou\svery\smuch\sfor\syour\sso\sclear\sexplanations.\n\nWhat\sI\sneed\sis\sa\smode\sthat\swill\slet\sme\swrite\smy\sfile\sin\sany\scase,\si.e.\sto\soverwrite\sif\sthe\sfile\sexists\s(no\sappend),\sor\sto\screate\sthe\sfile\sif\sit\sdoes\snot\syet\sexist.\sAnd\sthis,\swhether\sthe\sfile\sis\shidden\sor\snot.\n\nFrom\sthe\s"open"\sman\spage,\sI\shad\sunderstood\sthat\s"WRONLY\sCREAT\sTRUNC"\swas\swhat\sI\sneeded,\sand\stranslated\sthis\ssimply\sinto\s"w".\n\nI\snow\sunderstand\sthat\sI\sshould\suse\s"WRONLY\sCREAT",\sright?\n\nBut\sfor\sTRUNC\sI\scan\sread:\n"If\sthe\sfile\sexists\sit\sis\struncated\sto\szero\slength."\n\nBut\sthis\sseems\sto\sbe\swhat\sI\sneed!\sBecause\sotherwise\sI\swould\sappend,\sor\sam\sI\smissing\ssomething?\n\nAnyway,\sit\sseems\sfrom\smy\stests\sthat\sI\sactually\sdon't\sneed\sthe\sTRUNC\sparameter.\sQuestion\sis\s"why?"\n\nThanks,\nFrancois\n\n
J login fvogelnew1
J mimetype text/plain
J status Open
J username fvogelnew1
K 1622579fffffffffffffffffffffffffffffffff
U fvogelnew1
Z 8470748bf8feb19ef3f08276f66fdd8e