Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 28th, 2008, 6:58 PM   #1
Nitau
Newbie
 
Join Date: Dec 2008
Location: Lima, Peru
Posts: 3
Rep Power: 0 Nitau is on a distinguished road
Send a message via MSN to Nitau
What programming language is best for file manipulation?

I need a programming language with which to create programs that do the following things:

1 Easily manipulate files and folders on the hard drive (move them...easily change their properties, rename them... delete them...copy them... reorganize them... access the date modified/permissions information...)
2 Be able to easily search the computer for files...and take the search results and reorganize them.
3 Preferrably at a level of direct interaction with the harddrive...
4 Maybe a scripting language? I dunno

However it would also help that it may be complex enough that I can implement some kind of GUI as well..

Let me know of any programming languages that satisfy these conditions!!

I am working with Java right now, which is one of the only languages I know...but I really dislike the indirect way Java handles files ("with abstract File objects"), I prefer something more direct...like having a direct link to the files rather than through an intermediate File object.

Anyhow...help would be very much appreciated.

Nitau
Nitau is offline   Reply With Quote
Old Dec 28th, 2008, 7:01 PM   #2
Nitau
Newbie
 
Join Date: Dec 2008
Location: Lima, Peru
Posts: 3
Rep Power: 0 Nitau is on a distinguished road
Send a message via MSN to Nitau
Re: What programming language is best for file manipulation?

Also...if there is a way to use several languages in conjunction with each other, let me know if that is possible as well.
Nitau is offline   Reply With Quote
Old Dec 28th, 2008, 7:53 PM   #3
MadLurker
Programmer
 
Join Date: Nov 2008
Posts: 44
Rep Power: 0 MadLurker is on a distinguished road
Re: What programming language is best for file manipulation?

Perl is adequate for what you describe.
MadLurker is offline   Reply With Quote
Old Dec 28th, 2008, 7:57 PM   #4
Ancient Dragon
PFO God In Training

 
Ancient Dragon's Avatar
 
Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 1,795
Rep Power: 7 Ancient Dragon will become famous soon enough
Re: What programming language is best for file manipulation?

1) C and C++ would be equally capable of fulfilling those requirements. C# may to able too, I don't know.

>>Also...if there is a way to use several languages in conjunction with each other, let me know if that is possible as well

Microsoft .NET Managed programs can mix and match C++, C# and VB. There are also "mixed language" programming, where libraries are compiled with one language and called from other languages -- the win32 api is a good example of that.
__________________
PFO's FAQ is here
Forum Rules
Ancient Dragon is offline   Reply With Quote
Old Dec 28th, 2008, 8:03 PM   #5
Nitau
Newbie
 
Join Date: Dec 2008
Location: Lima, Peru
Posts: 3
Rep Power: 0 Nitau is on a distinguished road
Send a message via MSN to Nitau
Re: What programming language is best for file manipulation?

Thanks, guys.
Nitau is offline   Reply With Quote
Old Dec 29th, 2008, 6:06 AM   #6
Freaky Chris
Expert Programmer
 
Freaky Chris's Avatar
 
Join Date: Dec 2007
Location: England
Posts: 768
Rep Power: 3 Freaky Chris is on a distinguished road
Send a message via MSN to Freaky Chris
Re: What programming language is best for file manipulation?

Python, makes it really rather simple to do this sort of thing and with tkinter or another GUI library such as wxPython or Iron Python, then it is also not too difficult to create a GUI.

Only thing is you may find Python to be a little be slow for something like this, so it depends on just how fast you need to do things. It will only be fractionally slow. But it will be noticable for instance if you are seraching the entire computer for files.

Chris
__________________
Steven Skiena - Algorithms

,[->+>+<<]>>[-<<+>>]>++++++++[-<++++++++>]<+[-<->]>+<<[[-]+++++++++++++++.[-]>]>>[+++++++++.[-]],
brainf**k -- It's such a pretty language
Freaky Chris is offline   Reply With Quote
Old Dec 29th, 2008, 6:14 AM   #7
Lakrids
Programmer
 
Join Date: Dec 2007
Posts: 41
Rep Power: 0 Lakrids is on a distinguished road
Re: What programming language is best for file manipulation?

Everyone knows that COBOL is the best for file manipulation
Lakrids is offline   Reply With Quote
Old Dec 29th, 2008, 10:57 PM   #8
MasterWill
C/C++ Developer
 
MasterWill's Avatar
 
Join Date: Sep 2008
Location: Florida, USA
Posts: 130
Rep Power: 2 MasterWill is on a distinguished road
Re: What programming language is best for file manipulation?

Quote:
Originally Posted by Lakrids View Post
Everyone knows that COBOL is the best for file manipulation
LMAO

I actually use Python for things like this, and it is more than adequate. I know Chris mentioned a speed issue, but I have not encountered any real difference in reading a directory of 2500 files using Python compared to reading the same directory using, say, C#. That really is OS- and filesystem-dependent.

One of the main reasons why I use Python to work with large directory trees containing a multitude of files is that Python has a simple way to traverse the directory hierarchies: os.path.walk (or os.walk if you prefer to not use a callback). That one function makes directory walking so much easier and allows you to do some pretty sophisticated processing of bulk quantities of files.
__________________
-- William
MasterWill is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a new programming language uperkurk C++ 11 Mar 21st, 2010 4:29 AM
The C programming Language (2nd Edition) nnxion Book Reviews 13 Oct 21st, 2009 3:50 AM
The D programming language Baphomet Other Programming Languages 58 Sep 11th, 2007 1:31 AM
Which Programming Language You Use The Most? Soulstorm Coder's Corner Lounge 19 Apr 6th, 2007 10:29 PM
Which Programming Language for Beginner ? nkanthikiran Other Programming Languages 18 Jan 21st, 2006 5:53 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:45 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC