Results 1 to 3 of 3

Thread: Using the API to write and read a DAT file

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2001
    Location
    Northern Maine
    Posts
    281

    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.

  2. #2
    What's wrong with the VB file I/O? Using the API would make it much more complex.

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    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
  •  



Click Here to Expand Forum to Full Width