c

How to Write to a file in C

less than 1 minute read

Writing to a file in c is surprisingly simple. Most of the steps in c can be found in most other languages as well. In c you open a file, write to it and clo...

How to Write a TCP Echo Server in C

1 minute read

In c you are as close to the metal - or at least as close to the os - as possible in a high-level language. This shows in the verbose code you need to make a...

How to Read from stdin in C

less than 1 minute read

Reading from stdin in c - is exactly like reading from a file. (In unix philosophy - everything is a file after all). This means that the how to read a file ...

How to Read a file in C

less than 1 minute read

Reading files in C is very easy. First you need the stdio.h header file included, then you need a pointer of type FILE, and you call fopen on a filename (set...