This program will ask the user to input multiple sentences. Each sentence will be stored in a text file named "sentences.txt". The program will keep asking for new sentences until ...
This program prompts the user to input several sentences and stores them in a text file named "sentences.txt". If the file already exists, the new sentences will be appended to the...
This program reads and displays the contents of a specified text file on the screen. The name of the file can either be provided as a command line argument or, if no argument is gi...
This program implements a class TextToHtml that can convert several user-entered lines of text into an HTML sequence. The program will have methods to add text to an array, display...
This program creates a Logger class with a static method Write. The Write method appends a specified text message to a log file, including the current date and time before the mess...
Create a C# program that mimics the functionality of the Unix command more, which allows the user to view content from a text file one screen at a time. The program will display 24...
This program is designed to replace all occurrences of a specific word in a text file and save the result into a new file. The user provides the original file, the word to search f...
This program counts the number of times a specified character appears in a text file. The program can either ask the user for the file and the character to search or accept them as...
This program checks if a BMP image file seems to be correct by verifying its header. Specifically, it checks if the first two bytes of the file match the ASCII codes for the letter...
This program asks the user for their name, age (as a byte), and birth year (as an int). The data is then stored in a binary file. The program will also include a reader to test tha...
This program is designed to translate a simple C# source file into an equivalent Java source file. It will take a C# file as input, and generate a Java file by making common langua...
This program takes a text file as input and creates a new file with the same name, but with a ".tnv" extension. The new file will contain the same lines as the original file, but i...
This program checks if a GIF image file is correctly formatted by inspecting the first few bytes of the file. It reads the first four bytes to confirm if they match the ASCII codes...
This program expands the "friends database" by adding functionality to load and save data from and to a file. The program will check for an existing file when the application start...
This program is a basic Pascal-to-C# translator. It accepts a Pascal source file and converts it into an equivalent C# program. The program reads a Pascal file provided by the user...
This program reads the content of a text file and converts all lowercase letters to uppercase. After processing the text, the program writes the modified content to another text fi...
This program is designed to read a given text file, convert all lowercase letters to uppercase, and then save the modified content to a new file. The program will take an input fil...
This program is designed to read a binary file and create a new file with the same name but with a ".inv" extension. The new file will contain the same bytes as the original file, ...
This program is designed to encrypt a text file and save the encrypted content into another text file. The encryption method used here is a simple character shifting technique, whe...
This program is designed to read a text file and count the number of words it contains. A word is considered any sequence of characters separated by spaces, newlines, or punctuatio...
This program is designed to read a BMP (Bitmap) image file and display its width and height. The BMP file format has a specific header structure, which contains important informati...
This program is a "Text to HTML Converter" that reads the contents of a source text file and converts it into an HTML file. The program will take the text file and process its cont...
This program takes a file and creates a new file where the bytes are inverted. The program reads the contents of the original file using a FileStream, then writes these contents to...
This program reads the header of a BMP (Bitmap) file and extracts the width and height of the image using FileStream. It uses the structure of the BMP header, where the width and h...
This program copies a source file to a destination file using FileStream in C#. The file is read and written in blocks of 512 KB at a time to handle large files efficiently. The pr...
This program reads and extracts the ID3 version 1 tags from an audio file, specifically the last 128 bytes of the file, which contain metadata information such as the title, artist...
This program is designed to convert simple C programs into C# code. It takes a C program as input and translates it into a corresponding C# program that compiles and runs correctly...
This program allows you to split a file of any type into smaller pieces of a specified size. The program takes two parameters: the name of the file to split and the size (in bytes)...
This program allows you to encrypt and decrypt BMP image files by manipulating the "BM" mark located in the first two bytes of the file. The program swaps the "BM" marker at the be...
This program reads a CSV file that contains four data blocks per line. The first three data blocks are textual (name, surname, and city), and the last one is numeric (age). It proc...
This C# program compares two files of any type (text, binary, etc.) to determine if they are identical. The program reads the content of both files and checks whether every byte in...
This C# program decodes a Netpbm image file (specifically the "P1" type) and displays the image content in the console. The program reads the header, dimensions, and pixel data fro...
This C# program checks if a given file is a valid PCX image file. If the file is a PCX image, the program reads the file's header to extract the width and height of the image. The ...
This C# program extracts only the alphabetic characters from a binary file and dumps them into a separate file. The program identifies characters with ASCII codes between 32 and 12...
This C# program is designed to convert simple C# programs into Pascal language code. The program reads a C# source code file and translates basic constructs like if, for, while, va...
This C# program is a "dump" utility that functions as a hex viewer. It displays the contents of a given file in hexadecimal format, with 16 bytes in each row and 24 rows in each sc...
In this exercise, you will create a program that reads a DBF file and displays a list of fields contained within it. The DBF file format, used by the old dBase database manager, is...
In this exercise, you will create a program that reads a text file, checks each word against a list of words to censor, and writes the modified text to a new file. The words to cen...
In this exercise, you will create a C# program that parses SQL INSERT commands from a file and extracts their data in a structured format. The program will read SQL INSERT statemen...
This program reads a PGM image file in binary format (P5) and represents its shades of gray in the console using different characters based on the intensity value. The program firs...
This program reads a 72x24 BMP image file and displays it on the console. It uses the information from the BMP header to determine the start of image data and processes the pixels ...