Hey guys is there a funtion in python that enables to output values to a bin files? Just like storing strings in .txt files, can we store hexadecimal values directly into .bin files? I am working using Python 2.7.3
m_ishwar
13
Newbie Poster
Recommended Answers
Jump to Postlook at this for an example. Basically, the key is in the open():
Modes 'r+', 'w+' and 'a+' open the file for updating (note that 'w+' truncates the file). Append 'b' to the mode to open the file in binary mode, on systems that differentiate between …
All 4 Replies
rrashkin
41
Junior Poster in Training
m_ishwar
13
Newbie Poster
rrashkin
41
Junior Poster in Training
m_ishwar
13
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.