PDA

View Full Version : how to read properties files



rlelina
05-14-2009, 02:27 PM
Hi, I'm new to Word VBA and was wondering how to read properties files containing key-value pairs such as:

reports.loc=\docs\reports
results.loc=\docs\results
username=testuser
...
etc.

Thanks.

fumei
05-19-2009, 10:11 AM
I do not understand the question.

username could mean either the Word username; or it could mean the systen login username (which of course could be different. Which do you want?

What do you mean by "properties files"?

What "key-value pairs" are you talking about?

What does "reports.loc=\docs\reports" refer to? It looks like some reference to a Path location...but what file? What is the relation of "reports.loc" to the current (active) Word document? What is a .loc file anyway?