code: def read_data_from_bin_file(fileName):
      
      with open(fileName, mode='rb') as file: # b is important -> binary
          fileContent = file.read()
  
      (ChannelData, LenOf1Channel,
       NumOfChannels, SampleTime) = read_data_from_bytes(fileContent)
      
      return ChannelData, LenOf1Channel, NumOfChannels, SampleTime
docs: Loads the binary data stored in the a binary file and extracts the 
      data for each channel that was saved, along with the sample rate and length
      of the data array.
  
      Parameters
      ----------
      fileContent : bytes 
          bytes object containing the data from a .bin file exported from
          the saleae data logger.
      
      Returns
      -------
      ChannelData : list
          List containing a list which contains the data from each channel
      LenOf1Channel : int
          The length of the data in each channel
      NumOfChannels : int
          The number of channels saved
      SampleTime : float
          The time between samples (in seconds)
      SampleRate : float
          The sample rate (in Hz)