ok now its 3am and i think im almost there
i am just getting a very strange error which is strange!
my special character is "¥"
ok now what happens is until it hits ¥ it copies everything into buffer which is represented by nread
nread=read(infiled, buffer, buffer != "¥");
nwrite = open(buffer, O_CREAT, S_IRUSR|S_IWUSR);
when i did the open statement it didnt let me put nread as it was an integer so i just put buffer and it made the files but their names were nowhere near what they were supposed to be (they were along the lines of f��)
now im not entirely sure on what to do because i thought i had this figured out
could someone show me the light please