AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

read from inifile

Ein Thema von sdean · begonnen am 23. Apr 2010 · letzter Beitrag vom 23. Apr 2010
Antwort Antwort
sdean

Registriert seit: 5. Dez 2009
64 Beiträge
 
#1

read from inifile

  Alt 23. Apr 2010, 14:31
Hi , i've this inifile structure :

[Files]
FilesCount=3
[1]
name=m.txt
[2]
name=ms.txt
[3]
name=md.txt

please how could i read the files name based on FilesCount like this :

m.txt
ms.txt
md.txt


thank you in advance
  Mit Zitat antworten Zitat
Teekeks

Registriert seit: 19. Okt 2008
Ort: Dresden
765 Beiträge
 
FreePascal / Lazarus
 
#2

Re: read from inifile

  Alt 23. Apr 2010, 14:41
visit the unit inifiles.
There is a class TInifile.
Peter
"Div by zero Error" oder auch: "Es geht auch ohne Signatur!".
  Mit Zitat antworten Zitat
Benutzerbild von hitzi
hitzi

Registriert seit: 2. Jan 2003
Ort: Eibau
768 Beiträge
 
Delphi 2010 Professional
 
#3

Re: read from inifile

  Alt 23. Apr 2010, 14:41
-> http://docs.embarcadero.com/products...eadString.html
Thomas
Besucht doch mal http://www.hitziger.net
  Mit Zitat antworten Zitat
sdean

Registriert seit: 5. Dez 2009
64 Beiträge
 
#4

Re: read from inifile

  Alt 23. Apr 2010, 14:46
thank you all , i know how to use inifiles , but please how could i read thes values under :
[1]..[3]

the result will be :

m.txt
ms.txt
md.txt
  Mit Zitat antworten Zitat
Benutzerbild von hitzi
hitzi

Registriert seit: 2. Jan 2003
Ort: Eibau
768 Beiträge
 
Delphi 2010 Professional
 
#5

Re: read from inifile

  Alt 23. Apr 2010, 14:49
Read the FilesCount value and make a "for" loop which goes thru all numbers between 1 and FilesCount value and use readstring(inttostr(number), ....) to get the path.
Thomas
Besucht doch mal http://www.hitziger.net
  Mit Zitat antworten Zitat
sdean

Registriert seit: 5. Dez 2009
64 Beiträge
 
#6

Re: read from inifile

  Alt 23. Apr 2010, 14:53
Thank you hitzi , could you please give me a little example for that ....
  Mit Zitat antworten Zitat
sdean

Registriert seit: 5. Dez 2009
64 Beiträge
 
#7

Re: read from inifile

  Alt 23. Apr 2010, 15:00
Thank you hitzi i did it .

many thanks for you all .
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 17:27 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz