Exforsys

Free Training

creating directories from c program

This is a discussion on creating directories from c program within the C and C++ forums, part of the Programming Talk category; I am reading in data from files in a large set of directories, the data is stored in a structure. ...

Go Back   Exforsys > Programming Talk > C and C++

Exforsys.com


C and C++ C and C++

Reply

 

LinkBack Thread Tools Search this Thread
  #1 (permalink)  
Old 08-28-2006, 09:21 AM
Junior Member
 
Join Date: Jun 2006
Posts: 7
hat123 is on a distinguished road
Question creating directories from c program

I am reading in data from files in a large set of directories, the data is stored in a structure. The data must be sorted based on various parameters in the data--which are not known to the user before hand--so that the information can be passed on to another program and a log file can be created. I need the program to create data/output storage directories based on the data sort parameters in which the output from the follow-on program and the log file will be stored. The directories cannot be created by hand, because the program needs to put the path to the directory into the file read by the follow-on program--and the process needs to be "invisible" to the user who likely will know nothing about the original data, where the output directories should be, etc.

Bottom line: how do I create a directory using a c-program?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-05-2006, 05:49 AM
Senior Member
 
Join Date: Apr 2006
Posts: 138
Ralph is on a distinguished road
You can use system calls in C to handle directories namely directory creation. Hope you are using UNIX operating system.The Directory handling functions are present in <unistd.h>.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Shell Program to count files directories jennifer99 Shell Scripting Tutorials 4 06-25-2007 05:08 AM
counting directories hat123 C and C++ 0 06-25-2006 04:30 PM
Compiler Options encoder COBOL 0 05-07-2006 09:43 PM
All Companies Mock Interview Preparation Program admin Exforsys.com News 0 05-19-2005 07:28 AM
GEM Program Vasu Career Advice 23 10-14-2004 10:44 PM


All times are GMT -4. The time now is 05:14 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
Copyright 2004 - 2009 Exforsys Inc. All rights reserved.