How to use macro to read a txt file?

If I have some information that I saved in a text file, for example the part # (five digit e.g. 00211) and prefix (abc)

I want to write save my model or assembly with the property "part no" = 00212,  description = abc - bar

And then I need to update the txt file, the 00211 need to be updated to 00212.

How to do that?

SolidworksApi/macros