I have a problem with writing files. I am writing some characters to a file but I want the file be plane ASCII file. I want to when opening the file in the notepad, see "123" not "?3?? "
int fd;
fd = open("A/DCIM/100CANON/FILE.TXT", O_WRONLY|O_CREAT|O_TRUNC, 0777);
if (fd>=0){
write(fd, "123",10);
close(fd);
}
What is the problem?
Regards.