Hello,
Can I copy a binary file while the file is being written to by another process?
Another process (program) P1 creates and opens (for writing) binary file ABC on local disk. Process P1 continuously write into ABC file every couple of seconds, adding 512-byte blocks of data.
This is about files straight from the compiler, say g++, and the -o (outfile) flag.
If they are binary, shouldn't they just be a bunch of 0's and 1's?
When you cat them, you get unintelligible output but also intact words.
If you file them, you get the answer immediately - there seem to be no computation.
I have an issue with a legacy program. The program reads a file from disk as string and encodes the file as Base64 and saves the file to disk. The problem is that the file read in is a binary file. Is there any way to reverse this process?
I've made a DEB package of an C++ app that I've created. I want this app to use resources in the "data" directory, which, in my tests (for convenience), is in the same location that the program binary, and I call it from inside the code by its relative path.
I want to read monochrome image data from disk in a binary format (unsigned byte) and display it as an OpenGL ES 2 texture in Android. I am currently using Eclipse and the AVD emulator.
I am able to read the data from disk using an InputStream, and then convert the byte data to int to allow me to use the createBitmap method.
Quick question, I am new to socket, so i was wondering is there a way to read data from a MCU (Atmel)? I am running a Linux and I can connect an Atmel through RS232, or USB to my computer(server). Is there a way that I can directly read the data taht is coming from MCU (USB/COM) to my computer and process them?
Cheers
I have a binary program named as some thing like "mm.out". This program has some unexpected bugs and the bugs cause stopping the program. I want to right a service or shell script to execute my binary again if it stopped unexpectedly. How should i write this program?
Trilby wrote:Gcc compiles C into "plain old assembly", so why would you want to program in C? Cut out the middle man, and write in assembly.Assembly is assembled into plain old binary machine code, so why would you want to program in assembly?Binary machine code is translated at runtime by the processor into high and low voltage states on a series of registers and output lines.
I have to code a FTP server and I have a problem on how data is transferred.
I'm using ftp command on linux to test it and I'm currently working on LIST, which sends the list of files/directories in the working directory. Everything works fine (ftp well prints the list of files) except that ftp prints the following warning:
WARNING!