Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 09-23-2005, 07:48 AM   #1 (permalink)
glglgl
n00b
 
Join Date: Sep 2005
Location: greece
Posts: 1
glglgl is on a distinguished road
managing directories(total n00b)

hello ppl
This is my first totally newbie post
I'm trying to write down a little programm which will do a ''backup'' for me.
So, i have to deal with directories.
My question is : how am i going to read the files included in one directory (say that it doesnt have any subdirectories )
Also which command do i use for reading-creating directories and files?
thnx in advance
glglgl is offline   Reply With Quote
Old 09-23-2005, 08:05 AM   #2 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,726
redhead is on a distinguished road
This is highly system specific, for a Unix way, this thread might shed some light into what you should use, the use of the d_name will provide the name of the file/directory, but since you want this to be some form of directory handling, then you might want to check for the d_type provided in that structure in order to determain if it's a file or a directory.
Else look at your systems provided opendir()/readdir()/chdir()/mkdir()/closedir() equivalent functions.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Old 09-23-2005, 08:31 AM   #3 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
You can download the so called portable directory utilities from here:
http://archive.devx.com/sourcebank/search.asp

Search for "dirent.h" and "dir.h".
__________________
Valmont is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VB.Net help.. (n00b) crisischris MS Technologies ( ASP, VB, C#, .NET ) 1 03-02-2006 06:01 AM
ASP N00b - How to check if a variable is set? or empty? helz MS Technologies ( ASP, VB, C#, .NET ) 3 11-04-2004 11:19 AM
n00b question re: java sde Java 5 08-04-2003 04:26 AM
Revolution is starting Counter-Strike, advice for the n00b saline Lounge 13 06-13-2003 09:55 AM
Yup. Another n00b. Rie Lounge 3 03-07-2003 09:36 PM


All times are GMT -8. The time now is 12:16 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting