As with most programming languages, C# has the facilities to start other applications via command line. Such facilities may not be of much interest to the ardent C# programmer, who will want to fulfill every business logic with purely C# codes in his/her program. However, there are times when it is necessary to interface with applications that other people had already built for us.
The ability to read from file gives our C# programs the ability to act on data given by other programs, which may be written in different programming languages.
Such a ability is also helpful in allowing humans to configure how our C# program will behave at runtime.
Since being able to read from file is so helpful in C#, I want to remember how I can do that with this post.
File output can be used by C# programs to communicate with other programs written in different programming languages, or with human beings.
This post documents my experiences in writing to files in C#.net.
There are a few ways to create a file in C#. This post documents 3 ways to do that:
Although it is easy to write several hello worlds, programming is not always easy. In my life, I had came across inspiration quotes from famous people which had benefited me in different ways. Here are 7 quotes which I felt had helped make my programming life easier.
Throughout my software development exposures, defining and handling exceptions has always constituted a fair amount of my programming considerations. This post collates information about exceptions that I had came across.
With the ubiquity of web browsers, it can be ideal for the user interaction layer of applications to be web based. The most common approaches to building web based applications is to write server side scripts running on web servers. However, these approaches require server programs to be present in the production environment.
What if you want the web server functionality to be contained in your C# program? In C#, there is a
System.Net.HttpListener class which listens for HTTP requests from clients.
This post is part 1 of the sequel. In this post, I will introduce the
HttpListener class and how we can use it to receive HTTP requests from clients in our C# program.
This is part 2 of the sequel to “How to build a web based user interaction layer in C#“. In this post, I will discuss how we can examine HTTP requests received from clients.
This is part 3 of the sequel to “How to build a web based user interaction layer in C#“. In this post, I will discuss how to send a HTTP response back to the client.