class XfOOrth::XfOOrth_OutStream

Attributes

file[R]

The file used to perform the actual input operations.

Public Class Methods

new(file_name, file_mode) click to toggle source

Set up the OutStream for the given file name.
Parameters

  • file_name - The name of the file.

  • file_mode - The mode to use opening the file. Either 'w' or 'a'

# File lib/fOOrth/library/out_stream_library.rb, line 18
def initialize(file_name, file_mode)
  @file = File.new(file_name, file_mode)
rescue
  error "F51: Unable to open the file #{file_name} for writing."
end