Check if a File Exists in C

If we want to see whether certain file exists or not before doing some operation like read/write … Read more

C program to get current username of Linux application

cuserid() returns a pointer to a string containing a username associated with the effective user ID of … Read more

Debugging using C macros __FILE__ and __func__ and __LINE__

Following program shows a sample example of how we can use C macros __FILE__ , __func__ and … Read more

C program to read the contents of a file into character buffer

Lets say we want to read the contents of some file and want to operate on these … Read more

How to resolve: error: initializer element is not constant

Sometimes during complex programing, there are chances we make some mistakes during hurry to write and complete … Read more

Error Handling in C programs using errno, perror and strerror

The perror() function produces a message on standard error describing the last error encountered during a call … Read more

Arrays in Go language with Simple example

The below program initialises a static array of 7 elements and prints the values of each element … Read more

UDP DatagramSocket Socket programming in JAVA (Client, Server Example )

In this post, we will write simple UDP Datagram client and server in JAVA language. The client … Read more

Socket Programming in JAVA – TCP client and server

As we have already seen, how to write UDP socket programs in JAVA, now we will write … Read more

Solved : java.net.BindException: Address already in use (Bind failed)

If you are working with TCP / UDP sockets in JAVA, there is higher chances your might … Read more