text

How to Read and Write To/From Files in Python

Submitted by Yorkiebar on
Introduction: In this tutorial, we are going to be covering handling files in Python. Generic: To read or write from/to a file, we first need to create a stream. To do this we use the Python function 'open' which takes two parameters, the file, and the mode. The file should a file name (including directory location if it is not in the same directory as the current program) as a string, while the mode should also be a string. Don't forget to replace any backslashes in the directory with two backslashes to avoid Python escape character problems.

Binary To Text Conversion in VB.NET

Submitted by donbermoy on
Last day, I had created a tutorial on Text to Binary Conversion. But today, we will have a lecture on how to convert a binary into a text. Here in this tutorial, we will create our own program to create a text to binary conversion. :) So, now let's start this tutorial! 1. Let's start with creating a Windows Form Application for this tutorial by following the following steps in Microsoft Visual Studio: Go to File, click New Project, and choose Windows Application. 2.

How to Create a Text Manipulation Tool in Visual Basic

Submitted by Yorkiebar on
Introduction: Welcome to my tutorial on how to create a Text Manipulation tool in Visual Basic. Steps of Creation: Step 1: First we want to create a form with one button as 'go', textbox1 to contain the text to manipulate, textbox2 to contain the text reversed, textbox3 to contain the text muddled and textbox4 to contain the total characters of the text. Step 2: Now we want to set up our go button

How to Create a Text Editor in Visual Basic

Submitted by Yorkiebar on
Introduction: This tutorial is on how to create a text editor in Visual Basic. Steps of Creation: Step 1: First we need a form. Mine will consist of; - Richtextbox1 - Contain text contents - Button1 - Load File - Button2 - Save File - Button3 - Save File As New Name Step 2: Now lets import System.IO so we can read and write files. We also want to create a path String variable to contain our opened

How to Create a Notepad Project in Java

Submitted by Yorkiebar on
Introduction: This tutorial is on how to create a simple Notepad application in Java. The program will save and open files as well as have close and new functions. Steps of Creation: Step 1: First we want to create two classes; Main and Grid. In our Main class we will have our JFrame (which is the window of the application). The JFrame will lead to our Grid class which will contain the Notepad