|
-
Sep 23rd, 2001, 01:02 PM
#1
Thread Starter
Hyperactive Member
Using the API to write and read a DAT file
I am writing an application that keeps track of some common tasks that I do at work. I need this file to write to a .dat file but I don't like using the standard OPEN and CLOSE statements in VB. I would like to use the API to make the app less resource intensive. If anyone has any ideas of has an ap that does this they could share it would be appreciated.
-
Sep 23rd, 2001, 01:41 PM
#2
Member
What's wrong with the VB file I/O? Using the API would make it much more complex.
-
Sep 24th, 2001, 11:08 AM
#3
You could always use GetPrivateProfileString and
WritePrivateProfileString. Typically these are used to in connection with .InI files, but they are actually nothing more than a standard text file, so these APIs would work. I'm curious why you would want to do so, however,
Filburt1 is TOTALLY correct when saying that using APIs for something as basic as text file I/O really complicates your task.
Remember KISS!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|