C# facilities for dealing with folders
Especially for batch applications, the ability to deal with folders is important. This post documents the C# facilities that can give our applications the ability to work with folders.
Ever since I advanced beyond the “hello worlds” of Java, I had never stopped coding. This section is for documenting code usages that I had employed while solving the technological problems that I had encountered.
Especially for batch applications, the ability to deal with folders is important. This post documents the C# facilities that can give our applications the ability to work with folders.
Suppose that you need to write a C# application to run in an environment where there are many batch applications running and creating files as their output.
Your application is one of them and is required to process files produced by others. How are you going to know from your C# application when these files are ready?
In this post, I document the use of a .Net facility that can help you achieve that.
Persistency is almost always a requirement for applications that are meant for serious usage. Perhaps we want the data that our C# program had harvested or generated to be available everytime it runs. Or for that load of data that we are unable to send to a server to be remembered, so that we can try sending at a later time.
Because most of the data that is held by a C# application at runtime is in the form of objects, it is convenient to be able to save and load objects to file directly. Such capability is dubbed object serialization, and like many other programming languages, C# has the facilities to perform object serialization for developers.
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.
In order to get sensible data from users via an online form, we have to validate data that we receive from them . As much as possible, we will want the data validation process to minimize frustration to our users.
We could have perform the data validation on the input fields at the point when the form is submitted. However, a better way will be to perform data validation on the input fields as the user is filling up the form. The validation process can follow such a sequence:
There are a few ways to create a file in C#. This post documents 3 ways to do that:
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.
© 2010 - 2023 Techcoil.com: All Rights Reserved / Disclaimer
Follow us