Thank You for your continued support and contributions!
fd = rb->open(Temp_Data,O_RDWR | O_CREAT);while(rb->read_line(file,buffer1,100) != NULL){ char* pos = rb->strcasestr(buffer1,word); if(pos != 0) { rb->fdprintf(fd, buffer1, sizeof(buffer1)); rb->yield(); }}rb->close(fd);
Code: [Select]fd = rb->open(Temp_Data,O_RDWR | O_CREAT);while(rb->read_line(file,buffer1,100) != NULL){ char* pos = rb->strcasestr(buffer1,word); if(pos != 0) { rb->fdprintf(fd, buffer1, sizeof(buffer1)); rb->yield(); }}rb->close(fd);
rb->write(fd, buffer, sizeof(buffer));
nope, that still gives me continous text,heres a sample of what i get from it.
Quote from: Jazz00006 on October 15, 2006, 07:01:26 PMnope, that still gives me continous text,heres a sample of what i get from it.You are using read_line. From the comments of the read_line function (in apps/misc.c) you can find that all line ending characters are stripped. So you either need to read the lines a different way or add a line ending character after each line you wrote.
rb->fdprintf(fd, "%s\n", buffer);
Page created in 0.055 seconds with 21 queries.