English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I am new im programming iv Visual Basic 6.
I want to make a file where i will save settings made in my programms.
I want to make .dat or .bin files. hOW TO MAKE TKAT FILES.
dOES ANYBODY KNOW INTERNET ADRESS WHERE I CAN FIND THIS. I need your help.

2007-02-11 06:56:59 · 1 answers · asked by Anonymous in Computers & Internet Programming & Design

1 answers

There's a bunch of code on the net for making/reading .ini files.

Here's one:http://www.vbexplorer.com/VBExplorer/focus/ini_tutorial.asp

Or if you want to make/parse your own (If your a masochist, that is. )

Open "datafile.dat" for output as #1
print #1, "This is my data"
Close 1
-------

Open "datafile.dat" for input as #1
line input #1,mydata$
close 1

There's an API call for it, might be happier using it.

2007-02-11 12:18:05 · answer #1 · answered by steve.c_50 6 · 0 0

fedest.com, questions and answers