document for file I/O with VBA

M

muster

Hi all,

Where can I find a complete document about File I/O with VBA? I find
it hard to find in help due to the way it is organized.

I want to find ways to deal with files especially ".INI" alike text
files using Open, Input, etc. (let me know if there are better ways).
The functions I need are to seek lables like [General] and delte or
replace data in the section.

Thank you,
 
T

Tony Toews [MVP]

muster said:
Where can I find a complete document about File I/O with VBA? I find
it hard to find in help due to the way it is organized.

Access Type Writing Data Reading Data
Sequential Print #, Write # Input #
Random Put Get
Binary Put Get
I want to find ways to deal with files especially ".INI" alike text
files using Open, Input, etc. (let me know if there are better ways).
The functions I need are to seek lables like [General] and delte or
replace data in the section.

That's different. WritePrivateProfileString: INI Files - The Basics
http://vbnet.mvps.org/code/file/pprofilebasic.htm
These API calls will do all the work for you.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
 
Top