Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

Remove All Occurrences Of A Char From A File (Without Using A Temp File) | C Programming Example

2.4K views on YouTube

How to remove all occurrences of a char from a file *without* using a temporary file or another file with C. This program assumes the file is made up of 1 byte ASCII chars and will not work with 2-4 byte UTF-8 characters. Source code: https://github.com/portfoliocourses/c-example-code/blob/main/remove_char_from_file.c. Check out https://www.portfoliocourses.com to build a portfolio that will impress employers!