Advertisement

findfirst ,but where..?

Started by July 09, 2002 04:42 AM
4 comments, last by browny 22 years, 3 months ago
As you can already guess that i''m pretty new in Linux although i programmed quite a lot in windows and DOS environment. Now apparently it seems linux api doesn''t have anything called "findfirst," atleast that''s what i figured out after a whole night''s effort. So how do i go about scanning a directory in linux..... plz help And example code snippet would be highly appreciable. btw, what editor do you think is the best..... cuz i''ve been tyring these VIM and Emacs for the past 1 week but still couldn''t figure out what the point is :s. Why is life, atleast programming life, so difficult in linux ? I know that''s rather a stupid question for all those LINUX hardcore out there, but see, i''m just a newbie in LINUX environment .
Z
There is no findfirst on Linux. You can either read directories manually (using readdir(2) etc..) or comfortably (using glob(3)). Just have a look at the manpages.

I have to agree with you on the Vim/Emacs thing
Personally, I''ve just got a dozen (or more) instances of kwrite and a console for compiling, running etc.. open while I''m programming. You could also have a look at the various IDEs out there, like Anjuta or KDevelop.

cu,
Prefect

Return to the Shadows
Widelands - laid back, free software strategy
Advertisement
thanks for the ''glob'' and ''readdir'' thing although i haven''t tried them yet.

Now, i have downloaded this Anjuta but when i attempt to install it, it says

scrollkeep >= 1.4 ( or something i dont remember) is required
libgconf-gtk is required
libg... <br><br>I have almost combed through both the LINUX [ Red Hat 7.1 ] cds i have but culdn''t find any of the above mentioned packages :s. Where do i get them from… ?
Z
quote: Original post by browny
thanks for the ''glob'' and ''readdir'' thing although i haven''t tried them yet.

Now, i have downloaded this Anjuta but when i attempt to install it, it says

scrollkeep >= 1.4 ( or something i dont remember) is required
libgconf-gtk is required
libg... <br><br>I have almost combed through both the LINUX [ Red Hat 7.1 ] cds i have but culdn''t find any of the above mentioned packages :s. Where do i get them from… ? <hr height=1 noshade></SPAN></BLOCKQUOTE> <br><br>You could go to rpmfind.net, but I would suggest getting urpmi. It will download all the dependencies you need automatically so you don''t have to waste time searching around for stuff.<br>
[edit: *cough* hmmm, mixing up threads here]

[edited by - C-Junkie on July 10, 2002 11:46:48 PM]
Use nedit for now as your editor
http://www.nedit.org

If you want an easy ide try rhide.


But eventually, you *MUST* learn vim or emacs(not as good).

This topic is closed to new replies.

Advertisement