Author Topic: read file values like ini  (Read 2237 times)

0 Members and 1 Guest are viewing this topic.

Humbertogo

  • Guest
read file values like ini
« on: October 02, 2006, 06:09:33 AM »
can some one tell me how to read the values of this kind of file

i need to read the File [FName] value

File:
-----------------------------------------------

Version [Real]= 15.0 d E
[cfg]= d E
ScanMode [Short]= 1 d E
[]
[Dir]= d E
[Test_Library]= d E
  Name [String]="Test Library" d E
  File [FName]="C:\test\lib.glf" d E
  []
---------------------------------

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: read file values like ini
« Reply #1 on: October 02, 2006, 09:28:49 AM »
You could roll your own or use the WinAPI. Here's some info on the latter --

See MSDN entry, scroll down the bottom of this page, you should see --



For those headed towards .NET >> this << may be an interesting read.

:)
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

Humbertogo

  • Guest
Re: read file values like ini
« Reply #2 on: October 02, 2006, 09:54:08 AM »
ready try but
File [FName]="C:\test\lib.glf" d E
is coming entry (is not a key)