File Output Function.. Still problem..