如何从文件中检索文件的名称* [英] How to retrieve the name of the file from a FILE *

查看:123
本文介绍了如何从文件中检索文件的名称*的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近在这个小组讨论过

如何在给定文件的情况下检索文件名*。


这个问题引起了我的好奇心,经过一些

的研究后,我得出了一个很好的实现方案。


解决方案是在lcc-win32的教程中

http://www.cs.virginia.edu/~lcc-win32 )页面

331.


jacob

Recently there was a discussion in this group about
how to retrieve the file name given a FILE *.

The question raised my curiosity, and after some
research I have come up with a good implementation.

The solution is in the tutorial for lcc-win32
(http://www.cs.virginia.edu/~lcc-win32) page
331.

jacob

推荐答案

jacob navia< ja *** @ jacob.remcomp.fr>潦草地写道:
jacob navia <ja***@jacob.remcomp.fr> scribbled the following:
最近在这个小组中讨论了如何在给定文件*的情况下检索文件名。
这个问题引起了我的好奇心,经过一些研究后我得出了一个很好的实施方案。
解决方案在lcc-win32的教程中
http://www.cs.virginia.edu/~lcc-win32 )页面
331。
Recently there was a discussion in this group about
how to retrieve the file name given a FILE *. The question raised my curiosity, and after some
research I have come up with a good implementation. The solution is in the tutorial for lcc-win32
(http://www.cs.virginia.edu/~lcc-win32) page
331.




这个解决方案是非-portable因为它使用了Win32系统API。

像往常一样...... *叹气* ...... Jacob Navia没有提到这个事实。


-

/ - Joona Palaste(pa*****@cc.helsinki.fi)-------------芬兰------ --\

\ ------------------------------------ --------------------规则! -------- /

" B-but Angus!你是龙!

- 米老鼠



This solution is non-portable as it makes use of the Win32 system APIs.
As usual... *sigh*... Jacob Navia failed to mention this fact.

--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ------------- Finland --------\
\-------------------------------------------------------- rules! --------/
"B-but Angus! You''re a dragon!"
- Mickey Mouse


Joona I Palaste写道:
Joona I Palaste wrote:
jacob navia< ja *** @ jacob.remcomp.fr>潦草地写了下面的内容:
jacob navia <ja***@jacob.remcomp.fr> scribbled the following:
最近在这个小组中讨论了如何在给定文件*的情况下检索文件名。
Recently there was a discussion in this group about
how to retrieve the file name given a FILE *.





这个问题引起了我的好奇心,经过一些研究后我得出了一个很好的实现。
The question raised my curiosity, and after some
research I have come up with a good implementation.





解决方案在lcc-win32的教程中
http://www.cs.virginia.edu/~lcc-win32 )页面
331。
The solution is in the tutorial for lcc-win32
(http://www.cs.virginia.edu/~lcc-win32) page
331.



此解决方案不可移植,因为它使使用Win32系统API。
像往常一样...... *叹息* ...... Jacob Navia没有提到这个事实。


This solution is non-portable as it makes use of the Win32 system APIs.
As usual... *sigh*... Jacob Navia failed to mention this fact.



是的,它基于win32 API。这就是为什么我没有在这里发布

代码,只是给出代码指针


Yes, it is based on the win32 API. That is why I did not publish the
code here, just giving a pointer to the code


jacob navia< ja ***@jacob.remcomp.fr>潦草地写道:
jacob navia <ja***@jacob.remcomp.fr> scribbled the following:
Joona I Palaste写道:
Joona I Palaste wrote:
jacob navia< ja *** @ jacob.remcomp.fr>潦草地写了下面的内容:
jacob navia <ja***@jacob.remcomp.fr> scribbled the following:
最近在这个小组中讨论了如何在给定文件*的情况下检索文件名。
Recently there was a discussion in this group about
how to retrieve the file name given a FILE *.


这个问题引起了我的好奇心,经过一些研究后我得出了一个很好的实现。
The question raised my curiosity, and after some
research I have come up with a good implementation.


解决方案是在lcc-的教程中win32
http://www.cs.virginia.edu / ~lcc-win32 )页面
331。
The solution is in the tutorial for lcc-win32
(http://www.cs.virginia.edu/~lcc-win32) page
331.



这个解决方案是不可移植的,因为它使用了Win32系统API。
As通常... *叹气* ...... Jacob Navia没有提到这个事实。



This solution is non-portable as it makes use of the Win32 system APIs.
As usual... *sigh*... Jacob Navia failed to mention this fact.


是的,它基于win32 API。这就是为什么我没有在这里发布
代码,只是给出代码指针


Yes, it is based on the win32 API. That is why I did not publish the
code here, just giving a pointer to the code




为什么你甚至在这里给出一个指针?无论编写代码的位置如何,这个新闻组都不关心系统特定代码的
。另外,

不得不下载一个5兆字节的PDF文件只是为了看两页C

代码并不一定对我有吸引力,我也不会认为这对很多其他人来说很有吸引力。


-

/ - Joona Palaste(pa **** *@cc.helsinki.fi)-------------芬兰-------- \

\ -------- ------------------------------------------------规则! -------- /

玫瑰是红色的,紫罗兰是蓝色的,我是schitzophrenic,我也是。

- Bob Wiley



Why did you even give a pointer here? This newsgroup is not concerned
about system-specific code no matter where that code is written. Also,
having to download a 5-megabyte PDF file just to see two pages of C
code doesn''t exactly appeal to me, and I don''t think it appeals to
many other people either.

--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ------------- Finland --------\
\-------------------------------------------------------- rules! --------/
"Roses are red, violets are blue, I''m a schitzophrenic and so am I."
- Bob Wiley


这篇关于如何从文件中检索文件的名称*的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆