View Single Post
  #10   Report Post  
Posted to microsoft.public.excel.programming
GS[_2_] GS[_2_] is offline
external usenet poster
 
Posts: 3,514
Default Delete all, but the last 23 lines of an external text file

AFA settings are concerned, I use standard .ini files, read from &
written to
using the standard Get/WritePrivateProfileString WinAPI calls.


I use ini files too and so also the PrivateProfile functions via a
wrapper module I got from Rob Bovey way back in my early days of VBA
development. I 'mostly' use INIs for default app settings only, and
only write to INI during update/upgrade installs. The apps read INI at
startup.

I was referring, though, to user-defined settings/configs stored in
UDTs during runtime. I use a separate file for each group, and use
'Get_FromTextFile' function and 'Put_InTextFile' sub because these are
binary files. (When there's only a few values to store I may just use
the INI if inclined to do so!<g)

I also store my app license profiles in 2 different encrypted 'dat'
files. These apps use an automated instance instantiated by a VB6
frontloader EXE, which validates licensing before doing anything else.

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion