Category: I/O File
Under WSH (Windows Scripting Host), we can do a lot of tasks by using VBScript/JScript. The COM object WScript.Shell provides a useful method Exec that can be used to …
If you want to get the file size in bytes for a file, you can use the following function in Delphi/Object Pascal. // maxium supports 2G function getFileSizeInBytes(const fn: …
With C#, we can write code in a quick and elegant way. For example, if you want to search for temporary files (with some file patterns) in the system …
September 20, 2014
BASH Shell, beginner, c / c++, code, code library, console, I/O File, implementation, programming languages, windows, windows command shell
On Linux BASH shell, the ‘nl’ utility is used to print out text file (or string) with line numbers. If you type in nl –help you will have a …
I have a cached folder for one of my websites that stores quite a lot of sub folders and thousands of static HTML files. Some times, if I change …