Can I make this form ?

IF Open(1,"\\servername\share\" + $LogfileName,5)=0
;
$x=WriteLine(1,"$consChave"+Chr(13)+Chr(10))
; Close(1)