write

How to Write an Entry to the Application Event Logs in Visual Basic 2008

Submitted by janobe on
In this tutorial, I will teach you how to Write an Entry to the Application Event Logs by using Visual Basic 2008. Logs are very important because it will track every event that are happening in your application. So, let’s begin: 1. Open Visual Basic 2008. 2. Create a new Windows Application. 3. Make the Form just like this. First Form Event Logs Now, go to the code view. Create a variable that will set the entry type of the event log.

Save Data to Text File in VB6

Submitted by donbermoy on
A text file is considered a plaintext file and Notepad is only capable of creating and editing plaintext files and saves any text file with a .txt file extension. This means no special formatting or different types of fonts can be used. The easiest way to create a text file in Windows is to open up the Notepad software program on your computer. This is a standard program in Microsoft Windows, included with the operating system when installed. Now in this tutorial, we will create a program that can write and save data to text file.

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.

Reading from and Writing to a Text File in Java

Submitted by mehfuza on
Introduction: This tutorial demonstrate the method of reading from and writing to a text file in Java. Java has two type of files: Binary and Text. Text file is processed as a sequence of characters where as Binary file is processed a sequence of bytes. This application has 4 JButtons for reading, writing, exiting, and clearing the Display Area. Also It has a display area where we can type the data to be written to text and in the same area content from file are displayed. Step 1: Creating GUI Components Create the four buttons, label, text area and text field.