C# Notes Collection
1. Rename File
In VB.NET, there is a method My.Computer.FileSystem.RenameFile. How to use it in C#? It's simple, just follow these steps:
Add reference: Microsoft.VisualBasic, then add using Microsoft.VisualBasic.Devices;
Use these two lines:
Computer myComputer = new Computer();
myComputer.FileSystem.RenameFile(fileName, newFileName);
Where ...
Posted on Wed, 21 Oct 2026 16:19:28 +0000 by newrehmi
File System Operations in Node.js
Node.js provides comprehensive file system operations beyond basic reading and writing. This article covers various file manipulation methods avaliable through the fs module.
Checking File Existence
The fs.exists() and fs.existsSync() methods verify whether a file exists at the specified path:
const fs = require('fs');
// Asynchronous existenc ...
Posted on Sat, 10 Oct 2026 16:01:09 +0000 by bob_rock
Building a Command-Line File Manager in Kotlin Using Interfaces
Architecture Overview
This implementation uses three main components working together:
CommandLineTool: Handles user input parsing
LogicController: Routes commands to appropriate handlers
FileHandler: Executes file system operations
An interface-based approach provides a clean contract for all file operations.
Command Input Handler
package kf ...
Posted on Thu, 17 Sep 2026 16:48:44 +0000 by setic
Reading and Writing Files in PHP
Writing Files
PHP offers multiple appproaches for writing data to files, ranging from low-level file pointer functions to convenient single-call wrappers.
Using fopen(), fwrite(), and fclose()
<?php
$fp = fopen("output.txt", "w") or die("Cannot open file");
$content = "First line of data\n";
fwrite($fp ...
Posted on Mon, 24 Aug 2026 16:12:03 +0000 by fer0an
C Language File Operations: Complete Guide with Function Reference
File Classification
1. Program Files
Files with extansions: .c (source file), .obj (object file), .exe (executable)
2. Data Files
Files that store data, such as: .txt, .jpg, .log, etc.
File Usage
File Pointer
The file pointer references the file information block. The pointer type is FILE*. Each time a file is opened, the pointer starts at the ...
Posted on Mon, 10 Aug 2026 16:24:58 +0000 by AMV
Essential Custom Functions for JSFL File Operations
Creating Directories
function createDirectory(directoryPath) {
if (!FLfile.createFolder(directoryPath)) {
FLfile.remove(directoryPath);
FLfile.createFolder(directoryPath);
}
}
Listing Files by Pattern
function listFilesByPattern(directoryPath, filePattern) {
return FLfile.listFolder(directoryPath + "/" + f ...
Posted on Sat, 08 Aug 2026 16:42:04 +0000 by beanman1
File Operations and Exceptions
1: Reading a large file
with open('1.txt', 'r') as f:
content = f.readline()
while len(content) > 0:
print(content)
content = f.readline()
2: Reading lines containing the chaarcter 'python' from a large file
with open('1.txt', 'r') as f:
count = 0
content = f.readline()
while len(content) > 0:
...
Posted on Tue, 21 Jul 2026 16:21:11 +0000 by synergypoint
Understanding Java IO Streams: Character and Byte Operations
What is IO?
IO stands for Input and Output, referring to input streams and output streams. Input streams read data from a source, while output streams write data to a destination.
The following diagram illustrates how IO streams work:
File Operations with IO Streams
IO streams for file operations are divided into two main categoreis: character ...
Posted on Mon, 06 Jul 2026 17:13:36 +0000 by kenshejoe
Essential Linux Command Reference Guide
Operating System Overview
An operating system serves as the bridge between hardware and software, managing device resources while providing interfaces for users and applications.
Classification
Ctaegory
Examples
Desktop OS
Windows, Linux, macOS
Server OS
Linux, Windows Server
Embedded OS
Linux
Mobile OS
iOS, Android
Directory St ...
Posted on Mon, 15 Jun 2026 18:03:00 +0000 by katierosy
Python File Operations with System Functions
1. Files
Creating a file using open
import os
file_obj = open('data.txt', 'wt')
file_obj.close()
Checking if a file or directory exists using exists()
Pass absolute or relative path. Returns True if exists, False otherwise.
import os
os.path.exists('config.txt') # returns True
os.path.exists('..') # True
Checking if it is a file using ...
Posted on Sat, 06 Jun 2026 17:21:37 +0000 by hostcord