|
From: Shane B. <ast...@te...> - 2003-07-11 21:02:53
|
I was sorta curious about this myself. I can be hostile at times, so people
often accuse me of trying to start flaming wars, but when I read this post,
I felt no hostility or sarcasm at all... Whoever it was that thought this
was hostile, you need to learn how to read English, because there was no
personal feelings involved in the post, it was purely informational... That
said, purely informational posts which address specific questions are hard
to find, don't complain when the answer is clear.
-Shane
----- Original Message -----
From: "Per Westermark" <pw...@ia...>
To: "OROSZI Balázs" <or...@vp...>
Cc: <dev...@li...>
Sent: Friday, July 11, 2003 2:53 PM
Subject: Re: [Dev-C++] need help!
I have deleted the original question and Adam's answer, so I can't check
the full-text messages.
However, where in Adam's response did you see any "heavy" sarcasms? The
citated part does mention FindFirst/FindNext/... and the very valid remark
that FindClose() must be used.
It is a very, very common mistake to forget the FindClose(), since since
the program would leak handles and memory resources without the call -
resulting in future failures if the directory scan is performed multiple
times without restart of the application.
/Per W
On Fri, 11 Jul 2003, [ISO-8859-2] OROSZI Balázs wrote:
> Adam Malinowski wrote:
> >>I am new to C++. I like to read files name in the folder . For an
example,
> >>My path is "C:\temp\data ", and in the folder there are some files that
i
> >>need to read only file name like file1.dat , file2.dat , file3.dat ....
> >
> > all
> >
> >>my dat file. If anyone have any advice or good idea how to write this
> >>function for me I will be very happy. Thank you very much
> >>
> >
> > Try FindFirst and FindNext or FindFirstFile and FindNextFile.
> > You can specify diiferent parameters and file extension is one of them.
> >
> > FindFirst and aFindNext belongs to VCL library.
> > FindFirstFile and FindNextFile are Win32 API functions.
> >
> > Remember to use FindClose.
>
> Don't you think this was a bit "strong" or "heavy" for sarcasm?
>
> --
> Greetings,
> Balázs
>
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Parasoft
> Error proof Web apps, automate testing & more.
> Download & eval WebKing and get a free book.
> www.parasoft.com/bulletproofapps1
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|