🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #6322

Re: Read Directory - File

#6322
From: Vladimir Stefanovic
Date: Wed, 25 May 2005 19:29
29 lines
1778 bytes
Just curious, is there any signifficant reason why do
you need API solution contrary to VCL solution?

VCL already has everything you need for that...



-- 
Best regards,
Vladimir Stefanovic
"Pieter" <nospam@nospam.com> wrote in message 
news:4294b813$1@newsgroups.borland.com...
>
>
>   Hello,
>
> Please, I have two questions which I like to ask here:
>
> 1) I want to read all the files contained in a given directory. Which API 
> should I use? Also if I want to read only the files with a certain 
> extension.
>
> 2) In a file there are multiple lines. I want to read a line in that file, 
> do something with it and move to the next one till the end of the file. 
> What is the best way to do that and I will apreciate it if you can provide 
> me with code example.
>
> Thank you all
> 
Technical Details
Message-ID: <4294d20e@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!nntp.abs.net!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4294b813$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,57ff8ac7d09a7b63
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Vladimir Stefanovic" <antivari@po.sbb.co.yu>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4294b813$1@newsgroups.borland.com>
Subject: Re: Read Directory - File
Date: Wed, 25 May 2005 21:29:19 +0200
Lines: 31
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 213.137.116.235
Message-ID: <4294d20e@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1117049358 213.137.116.235 (25 May 2005 12:29:18 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!nntp.abs.net!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail