![]() |
|
#1
|
|||
|
|||
How to pass file path as parameter to fopen()?Hi ,
i need help about passing the file path as parameter for fopen(), fread(), fwrite() functions or for FILE * pointer. How can I do that? i.e. CPP / C++ / C Code:
Any suggestion will be appreciated. Thanks! Nancy Last edited by admin : 05-Oct-2008 at 02:12.
Reason: Please insert your example C/C++ codes between [CPP] and [/CPP] tags
|
|||
|
#2
|
|||
|
|||
Re: How to pass file path as parameter to fopen()?Quote:
|
|
#3
|
|||
|
|||
Re: How to pass file path as parameter to fopen()?A word of advice: do not use gets. If you want to know why simply google why is gets bad and you will get plenty of links. If you are not interested in the reason behind it and just want a safer method, investigate fgets instead.
__________________
My personal site: Utilities for text processing, debugging, testing and plotting |
Recent GIDBlog
Accepted for Ph.D. program by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Power Calibration Error In Nero Fix (hopefully) | matt3678 | Computer Hardware Forum | 60 | 20-Aug-2009 06:04 |
| Airport Log program using 3D linked List : problem reading from file | batrsau | C Programming Language | 11 | 29-Feb-2008 08:44 |
| After execution - Error cannot locate /Skin File? | WSCH | C++ Forum | 1 | 05-Mar-2005 21:03 |
| Re: Programming Techniques | WaltP | C Programming Language | 0 | 10-Mar-2004 00:56 |
| CD Buring Failed | skanth2000 | Computer Hardware Forum | 1 | 15-Nov-2003 04:52 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The