Nobuo Miwa
asked on
Cannot open long file path
Hello Experts,
I cannot open long file path with _wfopen_s() and FindFirstFile().
A long file path means "C:\aaaaaaa....\bbbbb....t xt"(260 bytes).
Windows 7 32bit, C++Builder XE2
Please advice.
I cannot open long file path with _wfopen_s() and FindFirstFile().
A long file path means "C:\aaaaaaa....\bbbbb....t
Windows 7 32bit, C++Builder XE2
Please advice.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you for reply.
Yes, I mean "C:\\aaaaaaa....\\bbbbb... .txt" in code.
Yes, I mean "C:\\aaaaaaa....\\bbbbb...
ASKER
Thank you for reply ZOPPO.
What do you mean "UNICODE versions of the functions" ?
Can I use _wfopen_s() ? If not, how can I open and read a file ?
What do you mean "UNICODE versions of the functions" ?
Can I use _wfopen_s() ? If not, how can I open and read a file ?
Yes, I mean "C:\\aaaaaaa....\\bbbbb... .txt" in code -> you can try the full path file, example "C\\aaaaaaaaaaaaaa\\bbbbbb bbb.txt,
you can use "C:\\aaaaaaa....\\bbbbb... .txt" in console application.
you can use "C:\\aaaaaaa....\\bbbbb...
Hm - I'm not really sure because I never used it this way, but I guess it should work with _wfopen_s since this is a wide-character version of fopen_s.
If it doesn't work you can use API functions like CreateFileW/ReadFileW/Writ eFileW and FindFirstFileW/FindNextFil eW/FindClo se if your application doesn't use UNICODE.
ZOPPO
If it doesn't work you can use API functions like CreateFileW/ReadFileW/Writ
ZOPPO
ASKER
Thank you for super quick reply !
Did you mean "C:\\aaaaaaa....\\bbbbb...