Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void ReplaceTabs(FILE *file)
- {
- int currChar = 0;
- if (file != NULL)
- {
- while((currChar = fgetc(file)) != EOF)
- {
- if(int currChar = 0 == '\')
- {
- currChar = fgetc(file);
- if(currChar == 't') //
- {
- // Here's where i stuck ...
- printf("t");
- }
- else
- {
- putchar(92); // ==
- putchar(currChar);
- }
- }
- else
- {
- putchar(currChar); // To print the chars
- }
- }
- }
- else
- printf("The file does not exists!");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement