![]() |
|
#1
|
|||
|
|||
How can I literally OPEN a file using a C++ program?All of you here actually really helped me by your answers. I didn't know you even CAN delete files from existence. Or string.find() erase() insert() and replace() functions. They should be useful.
![]() Anyways. By literally OPEN a file, I mean actually having the same result as double-clicking it in windows. I know there is a way to do that, but I don't know how or if it is too complicated. Thanks for any help, and I hope this is related to the thread. |
|||
|
#2
|
|||
|
|||
File directoriesFrom what I know, I can only access a file if it's located in the same directory as the program I'm running. Is there a way to choose it using a directory or something? And if this is related, how can I make folders?
Thanks a lot for any help |
|
#3
|
|||
|
|||
Re: How can I literally OPEN a file using a C++ program?Don't know what you talking here. Can you rephrase your question ?
|
|
#4
|
|||
|
|||
Using File Directories in Windows to access Files in a different directorySorry for the unclear questions, and sorry for making a new question at an already made thread.
When I write a program, such as the following: CPP / C++ / C Code:
That would make a file called test.txt which has 'this is a test file' written in it in the same folder / directory as the program itself because there's nowhere else it was told to make it. My question is how do I tell the program to read, write, or make a file in a different directory from the program? Can I do that? Thanks for any help ![]() Last edited by admin : 13-Jul-2008 at 15:10.
Reason: Please insert your example C/C++ codes between [CPP] and [/CPP] tags
|
|
#5
|
|||
|
|||
Re: Using File Directories in Windows to access Files in a different directoryQuote:
CPP / C++ / C Code:
|
|
#6
|
|||
|
|||
Re: How can I literally OPEN a file using a C++ program?Thank you very much. This is a lot of help
![]() |
Recent GIDBlog
Not selected for officer school by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Open, Read, Write to text file | lanz | C++ Forum | 3 | 11-Apr-2008 13:58 |
| Double linked List & File System | NatsoumiMaya | C Programming Language | 1 | 10-Feb-2008 09:23 |
| How to use the data obtain in one C file to another C file? | TommyC | C Programming Language | 12 | 15-Jan-2008 10:51 |
| malloc/free usage, and general good programming behavior | lavaka | C Programming Language | 7 | 14-Jun-2007 20:50 |
| Open file and print to a different file | alex18 | C++ Forum | 7 | 06-Oct-2006 17:11 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The