Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

Search: 

  Tutorial: Visual Basic Introduction to Visual Basic Managing INI files Tutorial

How to create, read and write an INI file from Visual Basic 6

Tutorial Details:

AndreaVB OnLine

Hello y'all. It's a long time that in the italian VB newsgroups periodically appears a thread asking how we can write and read the INI files. I always post the same solution: two little functions of mine, that belong from a code I found somewhere in andreavb.com.

My answer is always the same - and often they give me the same grateful reply - but threads expire after some time in newsgroups, so I'm afraid one of these days I can't post anymore the bare tinyurl link to the thread I spoke into, and I have to write another explanation of the whole stuff.

So I decided to post this article here: to put my functions and explanations in a not-expiring place. If one day my previous threads will be lost, I will tinyurl the link to this page (and then, my italian friends would be better start speaking english, ehehehe).
So, in order to create, read and write an INI file, copy the two routines below in a module.

INI files are made of sections, which names are enclosed in square brackets into the file (you could open one by the Notepad.exe to see how it is made), and several keys for each sections. Take note that there is no space before equal sign of the key, nor after it: the format is KeyName=Value. In the routines below you have to specify the section, and the name of the key to read/edit in that section.



 

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Visual Basic Introduction to Visual Basic Managing INI files Tutorial

View Tutorial:
Visual Basic Introduction to Visual Basic Managing INI files Tutorial

Related Tutorials:

Displaying 1 - 50 of about 2632 Related Tutorials.

Visual Basic Books
Visual Basic Books Visual Basic Books  ... Visual Basic Developer Get a focused, first look at the features and capabilities in Microsoft Visual Basic 2005, Visual Studio 2005, and the .NET
 
Visual DataFlex for Eclipse
Eclipse Plugin-Language Visual DataFlex for Eclipse...;    Visual DataFlex Tools for Eclipse The VDF Tools product brings Visual DataFlex support to the Eclipse platform. You can now enjoy
 
Summary - Basic Elements
Java: Summary - Basic Elements Java: Summary - Basic Elements Comments // Everything to the end of the line is ignored. Use for most comments. /* Everything (possibly many
 
Summary - Basic Elements
Java: Summary - Basic Elements Java: Summary - Basic Elements Comments // Everything to the end of the line is ignored. /* Everything (possibly many lines) is ignored
 
C/C++ Programming Books
;    Visual C++ 6 Unleashed Visual C++ 6 Unleashed provides comprehensive coverage of the core topics for Visual C++ 6 programming. This book skips the beginning level material
 
DB Visual Architect for Eclipse
DB Visual Architect for Eclipse DB Visual Architect...;      Extensive Database Coverage DB Visual..., PostgreSQL, MySQL and more. Intuitive GUI Design and Supreme Visual Editing Capabilities
 
Summary - Basic GUI Elements
Java: Summary - Basic GUI Elements Java: Summary - Basic GUI Elements String s; // Any string. String t; // A string. Interpreted as HTML if starts with "<html>" and ends
 
Basic Java Language Elements
Basic Java Language Elements Basic Java... will be introduced to some essential classes in Java like Exceptions, Basic I/O... Interfaces in Java. This tutorial will clarify your questions "What
 
VB and ASP programmers
Description  Visual basic programmer with ASP knowledge to develop... Profile  Candidate must have good knowledge of visual basic and Asp...: 1- 5 Years  Keywords: VB, ASP, Visual Basic, Oracle, SQL
 
Data Provider or other service returned an E_FAIL status Error
; In was developing a form in Visual Basic and got the error "Data Provider
 
MySQL Tutorial - SQL Tutorials
In was developing a form in Visual Basic and got the error "Data... MySQL Tutorial,Free MySQL Tutorials,MySQL Programming Tutorials,Online MySQL Help for Beginners MySQL Tutorial - SQL Tutorials
 
Ruby on Rails-Introduction
Ruby on Rails-Introduction Ruby on Rails-Introduction         ...;    This Tutorial is basically designed to provide you
 
Basic Components & Functionality of LBS
Basic Components & Functionality of LBS Basic Components & Functionality of LBS     ...: Consists of basic electronic instruments like mobile phone, smart phone, laptop
 
Eclipse Plunging/Web
can use the visual designer and Java code will be generated for you. You can... and see your changes immediately reflected in the visual designer.  ... standalone Java Swing application (or IDE plugin) for developing and managing
 
Objective C Introduction
;    This section provides you the basic introduction about... Objective C Introduction Objective C Introduction          
 
AN INTRODUCTION TO JSTL
of this tutorial on JSTL, the author gives a brief introduction to JSTL and shows why and how... AN INTRODUCTION TO JSTL AN   INTRODUCTION ... tutorial on JSTL, the author  introduces the concept of tag-based programming
 
MySQL Create Database
Query Browser and MySQL Administrator, enabling the visual creation... databases and run SQL queries in an easier way. Advanced features include visual...; * Search functionality (albeit basic MySQL LIKE). Can be disabled (default
 
Free JSP Books
;  Download the following JSP books. Introduction... of its basic functionality. The goal isn?t to swamp you with technical...;        The including files and applets in JSP
 
Rationale for GUI tutorial decisions
Java: Rationale for GUI tutorial decisions Table of Contents Rationale for GUI tutorial decisions Java... the introduction of the Java 5 Scanner class, but coverage of even this should
 
Expression Language Basic Arithmetic
Expression Language Basic Arithmetic Expression Language Basic Arithmetic      ... only in attribute values. The basic Expression Language arithmetic are: Addition
 
EL Basic Comparisons
EL Basic Comparisions EL Basic Comparisons.... The Expression Language has the following Basic Comparisons: < >  ...>Basic Comparisons</title> </head> <body> <h1>Basic
 
Basic Regular expression summary
Java: Basic Regular expression summary Java: Basic Regular expression summary Matching a single character Characters that otherwise have special regexp meanings
 
Simple Basic Stroke Example
Simple Basic Stroke Example Simple Basic Stroke Example                      
 
DataBase Connectivity with MySql in Visual Web JSF Application Using Net Beans IDE
Creating Visual JSF Project in NetBeans IDE DataBase Connectivity with MySql in Visual Web JSF Application Using Net Beans IDE... database connectivity with MySQL in visual web jsf application using java persistence
 
Summary - Basic GUI Components
Java: Summary - Basic GUI Components Java: Summary - Basic GUI Components Most components have a few common methods. cmp.requestFocus(); Puts focus (eg, blinking cursor) in field
 
Flex Container
; Every flex application is composed of so many visual components... visual components and other containers also inside it. Application is the top.... Introduction to Flex 2. What are flex containers 3. Using flex containers 4
 
J2EE Tutorial - Session Tracking Example
. In the UNIX  systems , C & later C++ reigned supreme. By 1990, Visual Basic... J2EE Tutorial - Session Tracking Example J2EE Tutorial - Session Tracking Example     
 
Programming: Hammurabi II - Two Player Version
Version Extend the basic Hammurabi project This is based on the Hammurabi I program... the solution at . Separate files. Each class is in a separate source file
 
Linux Books
; Introduction to GCC The purpose of this book... this book you should understand how to compile a program, and how to use basic... Base and Tutorial The Linux Knowledge Base and Tutorial (LINKBAT
 
Welcome to the Apache Struts Tutorial
Introduction to Struts 2 framework. Struts Hibernate Integration Tutorial NEW... - Jakarta Struts Tutorial Struts1 Examples Struts 2 Training! Get... in this tutorial. Struts1 vs Struts2 Struts2 is more powerful
 
Managing Anger
Managing Anger Managing Anger               ...; Introduction Angry behavior at home, on the road and at the workplace
 
Introduction
Introduction Introduction               ... are case insensitive like BASIC and Pascal.      
 
Java Complete Hibernate 3.0 Tutorial Tutorial
. Download Source Code Example of tutorial Introduction to Hibernate 3.0... Hibernate Tutorial,Hibernate 3 Tutorials,Java Hibernate Example,Hibernate Online Code Complete Hibernate 3.0 Tutorial
 
GUI Tutorial I - FIRST DRAFT
Vanilla Java: GUI Tutorial First Draft Table of Contents GUI Tutorial I - FIRST DRAFT Table of contents Introduction Tiny Window - The smallest window you can build. Tiny Window
 
Complete Hibernate 3.0 Tutorial
. Download Source Code Example of tutorial Introduction to Hibernate 3.0... Hibernate Tutorial,Hibernate 3 Tutorials,Java Hibernate Example,Hibernate Online Code Complete Hibernate 3.0 Tutorial
 
J2EE Tutorial - Introduction
J2EE Tutorial - Introduction J2EE Tutorial - Introduction         ... want to know whether J2EE is Java atall or something else. This tutorial
 
MySQL Administrator
; MySQL Administrator MySQL Administrator is a powerful visual administration... visual database administration  *Lower database administration costs...;      Introduction to Mysql Administrator
 
XML: An Introduction
XML XML: An Introduction  ... it is easy to create and edit files with anything from a standard text editor to a visual development environment. XML also provides scalability for anything from
 
Introduction to RCFaces
Introduction to RCFaces Introduction to RCFaces... need some of the RCFaces jar files to be included into the class path... in the JSF page. You can follow these some basic steps to run first "Hello
 
Struts Validator Framework Tutorial with Example
Struts Validator Framework Tutorial with Example....  Introduction to Validator Framework Struts Framework provides... validations into Validator. The Validator Framework uses two XML configuration files
 
Getting Started with Java
;   This tutorial will introduce you with the basic concepts of  Java Programming language. You will find
 
JDBC Steps ? Basic steps in writing a JDBC Application
JDBC Steps,Steps of writing JDBC Applications JDBC Steps – Basic steps in writing a JDBC Application               
 
Beginners Java Tutorial
java Beginner,java Beginners,Beginning java,Beginners Java Tutorial,Java for beginners Beginners Java Tutorial...; This tutorial will introduce you with the Java Programming
 
VoIP Tutorial
VoIP Toturial VoIP Tutorial   ...;           Introduction...;          VoIP Technical Tutorial
 
Quick Hibernate Annotation Tutorial
; Note:- This tutorial covers only the Annotations part. The reader must have hands on experience before starting this tutorial. Introduction:- Hibernate needs... the development. This also reduces the management of different files for the metadata
 
Managing Bean Example
Managed Bean Example Managing Bean Example            ...;BeanName". This tutorial explains how backing bean can be used in our
 
Beginners Java Tutorial
java Beginner,java Beginners,Beginning java,Beginners Java Tutorial,Java for beginners Beginners Java Tutorial...; This tutorial will introduce you with the Java Programming
 
Introduction to Struts 2
Introduction to Struts 2 Introduction to Struts 2...; This section provides you a quick introduction to Struts 2 framework... can add your own. The basic platform requirements are Servlet API 2.4, JSP API
 
Struts Tutorials - Jakarta Struts Tutorial
Introduction to Struts 2 framework. Struts Hibernate Integration Tutorial NEW... - Jakarta Struts Tutorial Struts1 Examples Struts 2 Training! Get... in this tutorial. Struts1 vs Struts2 Struts2 is more powerful
 
J2ME Tutorial
J2me Tutorial J2ME Tutorial  ...;  Radio Button in J2ME In this tutorial you will see the MIDlet... Example This example is all about how to play the MPEG files on your mobile device
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.