Phate867:
Does this work in kernel mode too? I'm writing a kernel module which has to interact with arduino board..
Why don't you try it? Just
FILE* ardport = fopen("/dev/ttyACM0", "r+");
FILE* output = fopen("/tmp/ardoutput", "a");
int c;
while ((c = fgetc(ardport)) != EOF) {
fputc(output, c);
}
fclose(ardport);
flose(output);