Articles on: File Management

How to create and edit plain text files (e.g., .txt, .log, .htaccess) using the File Manager in cPanel.

Here is how to create and edit plain text files (e.g., .txt, .log, .htaccess) using the File Manager in cPanel at dotCanada.com:
Creating a New Plain Text File:
Log into your dotCanada.com cPanel account.
In the "Files" section, click on "File Manager".
Navigate to the directory where you want to create the new file.
Click on the "New File" icon (it looks like a blank page with a green plus sign).
Enter the filename with the appropriate extension (e.g., myfile.txt, access.log, .htaccess).
Click "Create New File".
The new file will open in the text editor.
Editing an Existing Plain Text File:
Log into your dotCanada.com cPanel account.
In the "Files" section, click on "File Manager".
Navigate to the directory containing the file you want to edit.
Right-click on the file and select "Edit" (or double-click the file).
The file will open in the text editor.
Make your desired changes to the file.
Click "Save Changes" when you're done editing.
Tips and Notes:
• The text editor in the File Manager supports basic formatting options like font style, size, and color.
• Use caution when editing system files like .htaccess, as incorrect changes can cause issues with your website.
• dotCanada.com recommends creating backups of important files before making changes.
• For larger files or more advanced editing, consider using a dedicated text editor or IDE on your local machine.
By following these steps, you can easily create and edit plain text files of various types using the convenient File Manager tool in your dotCanada.com cPanel account.

Updated on: 08/05/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!