| | |
Help with strings and file directory tree
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Sep 2004
Posts: 56
Reputation:
Solved Threads: 2
Hey Everyone,
I need to write a program where the first half builds what is basically a file directroy tree. Files and their paths will come in from file in the form...
/program/file/whatever
... and be read into a string. Problem is I don't know how to manipulate strings very well. What I need to know would be how to pull out "program" for example. Then when done using that, check for and remove "/" and then pull out "file". If not could someone give me a link to a good site with all available string functions? Thanks for the help.
I need to write a program where the first half builds what is basically a file directroy tree. Files and their paths will come in from file in the form...
/program/file/whatever
... and be read into a string. Problem is I don't know how to manipulate strings very well. What I need to know would be how to pull out "program" for example. Then when done using that, check for and remove "/" and then pull out "file". If not could someone give me a link to a good site with all available string functions? Thanks for the help.
![]() |
Similar Threads
- No such file or directory (C)
- Utility: TXT list of files/dirs to browser-like directory tree (C++)
- I get the error no file or directory when i try to run a perl script (Perl)
- comparing two directory tree structures (Shell Scripting)
- HTTP Error 404 - File or directory not found. (ASP.NET)
- fopen: No such file or directory (*nix Software)
Other Threads in the C Forum
- Previous Thread: CYK algo
- Next Thread: MERGED: Deleting duplicates in an array (plz help me out!!!!!!!)
| Thread Tools | Search this Thread |
#include * ansi append array arrays asterisks bash binarysearch centimeter changingto char character convert copyimagefile cprogramme creafecopyofanytypeoffileinc database dynamic execv feet fgets file floatingpointvalidation fork framework function getlogicaldrivestrin givemetehcodez grade gtkwinlinux hacking histogram ide inches include incrementoperators infiniteloop initialization input interest intmain() iso kernel keyboard kilometer license linked linkedlist linux list lists locate looping lowest matrix meter microsoft number oddnumber opendocumentformat openwebfoundation overwrite owf pdf pointer posix power probleminc process program programming radix recursion recv recvblocked research reversing segmentationfault sequential single socket socketprograming socketprogramming standard strchr string suggestions systemcall test testing threads turboc unix urboc user variable wab whythiscodecausesegmentationfault windowsapi





