Writes str to file, where file is the result of calling AllocateResource( ).
writeRes ( str As String, _ file As User ) As Integer