About 229,000 results
Open links in new tab
  1. c - How to read/write a binary file? - Stack Overflow

    Jan 16, 2024 · I'm trying to write to a binary file, read from it, and output to the screen. I can write to a file, but when I try to read from it, it is not outputting correctly.

  2. shell - How to view files in binary from bash? - Stack Overflow

    Dec 6, 2018 · I would like to view the contents of a file in the current directory, but in binary from the command line. How can I achieve this? For example, something like this: $ cat test Hello, …

  3. Read and write from/to a binary file in Matlab - Stack Overflow

    Oct 3, 2011 · Nevertheless here it comes: I have got a file containing data (16-bit integers) stored in binary format. How do I read it into a vector /an array in matlab? How do I write this data to …

  4. Reading a binary file with python - Stack Overflow

    Jan 3, 2012 · I find particularly difficult reading binary file with Python. Can you give me a hand? I need to read this file, which in Fortran 90 is easily read by int*4 n_particles, n_groups real*4 …

  5. How to read a binary file into a vector of unsigned chars

    Lately I've been asked to write a function that reads the binary file into the std::vector<BYTE> where BYTE is an unsigned char. Quite quickly I came with something like this: #include <f...

  6. Reading binary file and looping over each byte [duplicate]

    In Python, how do I read in a binary file and loop over each byte of that file?

  7. How do I see a bin file in a hex editor in Visual Studio Code?

    I have a bin file holding all my instruction cache and data cache for my Verilog project, and I want to see it as the Notepad++ hex editor shows its meaning, hex representation view. Is there a …

  8. How can I read a binary file and write it to another binary file in …

    158 I'm trying to write code to read a binary file into a buffer, then write the buffer to another file. I have the following code, but the buffer only stores a couple of ASCII characters from the first …

  9. How to read binary files in Python using NumPy?

    Sep 29, 2016 · fileContent = file.read() After that you can "unpack" binary data using struct.unpack If you are using np.fromfile() function: numpy.fromfile, which can read data from …

  10. How do I read .bin file in Python? And why do I get weird looking ...

    Oct 16, 2021 · That's a binary file, it stores bytes (well, I suppose all computer files do, but text files have a very standard encoding to go from those bytes to text we can read). Appropriately, …