README.md
Notepad Application Documentation
Table of Contents
- Introduction
- Features
- Installation
- Usage
- File Operations
- Editing Operations
- Help Options
- Exit
- Dependencies
Introduction
The Notepad application is a simple text editor written in C# using the .NET 6.0 framework. It mimics the functionality of an old-school notepad application, providing basic text editing features.
Features
- Open, create, and save text files.
- Basic text editing (copy, cut, paste).
- User-friendly terminal interface.
- Customizable file types for new files.
- Help menu with information about the application and licensing.
Installation
To install and run the Notepad application, follow these steps:
Ensure you have .NET 6.0 SDK installed on your machine.
Clone the repository from GitHub:
git clone https://github.com/0x7ffed9b08230/old-apps
Navigate to the Notepad application directory:
cd old-apps/Notepad
Build the application using the .NET CLI:
dotnet build
Run the application:
dotnet run
Usage
Launching the Application
You can launch the application with or without a file argument. If you provide a file name, the application will open that file. If no file name is provided, the application will start with an empty editor.
dotnet run [optional-file-name]
Main Window
Upon launching, the main window of the Notepad application will be displayed. It includes a menu bar and a text editing area.
Menu Options
The menu bar provides various options for file operations, editing, and help.
File Operations
Open a File
To open an existing file:
Select
File
>Open
from the menu.A dialog will appear to choose a file.
Select the desired file and press OK.
Save a File
To create a new file:
- Select
File
>Save
from the menu. - If the file has no name, a save dialog will appear.
- Enter the file name and press OK.
New File
To create a new file:
- Select
File
>New
from the menu. - Choose a file type from the displayed list.
- Select an extension (if multiple are available).
- A save dialog will appear to name the new file.
Quit the Application
To exit the application:
- Select
File
>Quit
orExit
>Exit
from the menu.
Editing Operations
Copy
To copy text:
- Select the text you want to copy.
- Right-click and select
Copy
from the context menu. Alternatively, SelectEdit
>Copy
from the menu.
Cut
To cut text:
- Select the text you want to cut.
- Right-click and select
Cut
from the context menu. Alternatively, SelectEdit
>Cut
from the menu.
Paste
To paste text:
- Right-click and select
Paste
from the context menu. Alternatively, SelectEdit
>Paste
from the menu.
Help Options
About
To view information about the application:
- Select
Help
>About
from the menu.
Issues
To report issues or bugs:
- Select
Help
>Issues
from the menu.
License
To view the application's license:
- Select
Help
>License
from the menu.
Exit
To exit the application:
- Select
File
>Quit
orExit
>Exit
from the menu.
Dependencies
The Notepad application has the following dependencies:
- Newtonsoft.Json - for JSON serialization and deserialization.