开发者

How to get full path of a file just by giving the filename in C?

开发者 https://www.devze.com 2023-01-16 15:06 出处:网络
Suppose I have a file path as C:\\Sample\\example.txt. how can full path of the file be retrieved (the file can be in an开发者_Python百科y directory) just by giving the filename i.e., example.txtin C

Suppose I have a file path as C:\Sample\example.txt.

how can full path of the file be retrieved (the file can be in an开发者_Python百科y directory) just by giving the filename i.e., example.txt in C ?


get the source for the "find" command from the (i think) gnu package (or a linux source distribution), and copy the appropriate passages for you platform.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号