Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock RemoverLinha(sArquivo[],sLinha[])
- {
- new
- sTmp[0500], //define o tamanho da váriavel para armazenar o arquivo
- sFinal[5000],
- File:iFile = fopen(sArquivo, io_read);
- while(fread(iFile, sTmp))
- {
- if(strcmp(sTmp, sLinha, true))
- {
- strcat(sFinal,sTmp);
- }
- }
- fclose(iFile);
- fremove(sArquivo);
- new File:iFile = fopen(sArquivo, io_write);
- fwrite(iFile,sFinal);
- fclose(iFile);
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement