Forums Register Login

Read a C file in Java

+Pie Number of slices to send: Send
Hello,
I need to read within Java code a binary file which was written using 'fwrite' method in 'C'.
The C file result is:
"~' �4 o "
and the translate:
"0000000 10110 00000 13440 00000 00367 00000 00010
0000015"
Thanks to anyone who could help.
+Pie Number of slices to send: Send
Well, you can use a file input stream to read the file into an array of bytes. After that, I'm not sure what it is you want to do. Are you trying to display it? Is that octal? You can do something like:
You know it is dark times when the trees riot. I think this tiny ad is their leader:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 915 times.
Similar Threads
Error: java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester
Having problem with these program
integrating Java with #C, having issues
Problem with RichFaces and Ireport
Memory usage by Java program in LINUX machine.
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 04:10:36.