Python Forum
Need help reading in a binary file
Thread Rating:
  • 2 Vote(s) - 1.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help reading in a binary file
#2
Please show the entire traceback. It contains valuable information
and I believe part of the prblem is that you need to append
.decode('utf-8') to your read statement, like:
self.filecontent = self.file.read().decode('utf-8')
Reply


Messages In This Thread
RE: Need help reading in a binary file - by Larz60+ - Jun-21-2017, 11:31 PM
RE: Need help reading in a binary file - by zivoni - Jun-22-2017, 10:04 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Reading large crapy text file in anaconda to profile data syamatunuguntla 0 846 Nov-18-2022, 06:15 PM
Last Post: syamatunuguntla
  How to form a dataframe reading separate dictionaries from .txt file? Doug 1 4,283 Nov-09-2020, 09:24 AM
Last Post: PsyPy
  reading tab file Mandiph 1 2,217 Sep-05-2019, 01:03 PM
Last Post: ThomasL
  Reading a .dat file in Python mohd_umair 4 23,645 Apr-24-2019, 12:07 PM
Last Post: mohd_umair
  Reading time steps from nc file ankurk017 1 2,621 Jul-16-2018, 07:06 PM
Last Post: woooee
  reading, modifying and writing json file metalray 2 10,970 Jun-06-2018, 03:09 PM
Last Post: metalray
  Reading json file as pandas data frame? Alberto 1 8,402 Feb-05-2018, 12:43 AM
Last Post: snippsat
  matplotlib help with reading values from CSV file cps13 6 7,365 Aug-22-2017, 10:21 AM
Last Post: andre

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020