8< # include # include # include # define SINPUT 0 # define SOUTPUT 1 # define SERROR 2 main() { char *message; int newid; newid = open("aFile.txt",O_CREAT|O_WRONLY, 0644); printf("New File Descriptor = %d\n", newid); message = "this is a text for aFile.txt\n"; write(newid, message, strlen(message)); close(newid); message = "this is standard-output text\n"; write(SOUTPUT, message, strlen(message)); message = "this is standard-error text\n"; write(SERROR, message, strlen(message)); } >8