Can these functions be used on Non-Ini files??
I store a lot of my information for programs in some unrecognizable format(well it is Text inside, but with an extension of something like .zxy) so it will be harder for computer illiterate people to modify and possibly screw up the program.
I usually store in this format

Code:
[sect]
text
[sect2]
text
I dont really want to use an INI File, but I really like using this format, so far I have been using InStr and Mid, I really dont like doing this. could I use these to write/read sections from any file??
Code:
Public Declare Function WritePrivateProfileSection Lib "kernel32" Alias "WritePrivateProfileSectionA" (ByVal lpAppName As String, ByVal lpString As String, ByVal lpFileName As String) As Long
Public Declare Function WritePrivateProfileString Lib "kernel32" Alias "WritePrivateProfileStringA" (ByVal lpApplicationName As String, ByVal lpKeyName As Any, ByVal lpString As Any, ByVal lpFileName As String) As Long
Public Declare Function GetPrivateProfileSection Lib "kernel32" Alias "GetPrivateProfileSectionA" (ByVal lpAppName As String, ByVal lpReturnedString As String, ByVal nSize As Long, ByVal lpFileName As String) As Long
Public Declare Function GetPrivateProfileString Lib "kernel32" Alias "GetPrivateProfileStringA" (ByVal lpApplicationName As String, ByVal lpKeyName As Any, ByVal lpDefault As String, ByVal lpReturnedString As String, ByVal nSize As Long, ByVal lpFileName As String) As Long
Also, how do I do basic file operations in API?
like read/write to a file? like these, but in API

Code:
Open FileNamePath For Output As FileNum
Print #FileNum, "MyString Thing"
Close FileNum

Open FileNamePath For Input As FileNum
Text1 = Input(LOF(FileNum), FileNum)
Close FileNum

???

Thanks,
Dennis