Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
How can I recover the file name given an open stream or file descriptor?
How can I recover the file name given an open stream or file descriptor?
✍: Guest
This problem is, in general, insoluble. Under Unix, for instance, a scan of the entire disk (perhaps involving special permissions) would theoretically be required, and would fail if the descriptor were connected to a pipe or referred to a deleted file (and could give a misleading answer for a file with multiple links). It is best to remember the names of files yourself as you open them (perhaps with a wrapper function around fopen).
2015-04-10, 1320👍, 0💬
Popular Posts:
What does XmlValidatingReader class do? XmlTextReader class does not validate the contents of an XML...
Have you ever worked with Microsoft Application Blocks, if yes then which? Application Blocks are C#...
How can you write a loop indefinitely? Two examples are listed in the following code: for(;;) { ... ...
How To Get the Last ID Assigned by MySQL? - MySQL FAQs - Managing Tables and Running Queries with PH...
How can a servlet refresh automatically if some new data has entered the database? You can use a cli...