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

Read And Store Each Line Of A File Into An Array Of Strings | C Programming Example

36.2K views on YouTube

How to read and store all the lines of a file into an array of strings in C. Source code: https://github.com/portfoliocourses/c-example-code/blob/main/file_lines_to_string_array.c. Check out https://www.portfoliocourses.com to build a portfolio that will impress employers!

***Dynamically allocated array version of reading and storing all the lines of a file into a (dynamically allocated) array of strings: https://youtu.be/vQno9S3yF80