| | |
File Processing 2
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
If the file is in the current working directory, it's just a matter of tacking on the extension and opening the file:
If the file is not in the current working directory, you must supply the path to the file as well as the file name. How you go about that depends on the needs of your application, but a good generic method is to ask the user for a path in one way or another.
Be more specific instead of just copying what you asked in your other thread.
C Syntax (Toggle Plain Text)
string name = "derrick"; ifstream in ( ( name + ".txt." ).c_str() );
Be more specific instead of just copying what you asked in your other thread.
I'm here to prove you wrong.
![]() |
Similar Threads
- file processing, Random-access Files (C++)
- File Processing C++ (C++)
- Help!..."File Processing" *questions inside* (C++)
- File Processing (C)
- File processing problem (C++)
Other Threads in the C Forum
- Previous Thread: Reverse single linked list using double pointers
- Next Thread: Please can anybody give me an example
| Thread Tools | Search this Thread |
* ansi api append array arrays bash binarysearch calculate centimeter changingto char character convert copyanyfile copypdffile createcopyoffile createprocess() directory dynamic execv fflush file floatingpointvalidation fork forloop frequency function getlasterror getlogicaldrivestrin givemetehcodez grade graphics gtkgcurlcompiling gtkwinlinux hardware highest histogram homework i/o ide inches initialization intmain() iso keyboard km license linked linkedlist linux list looping loopinsideloop. lowest matrix microsoft multi mysql oddnumber open opendocumentformat openwebfoundation pdf pointer pointers posix power program programming pyramidusingturboccodes read recursion recv recvblocked repetition reversing scanf scheduling segmentationfault send shape single socketprogramming stack standard strchr string strings suggestions test testautomation unix urboc user variable whythiscodecausesegmentationfault win32api windows.h windowsapi






