| |

VerySource

 Forgot password?
 Register
Search
View: 746|Reply: 6

Excuse me! How to get whether a file exists?

[Copy link]

2

Threads

2

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-2-17 18:00:01
| Show all posts |Read mode
Dear prawns!
Excuse me! How to get whether a file exists? Anxious, not using FileExists
Reply

Use magic Report

1

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-4-23 13:45:01
| Show all posts
#include <io.h>
access ()
Reply

Use magic Report

0

Threads

25

Posts

19.00

Credits

Newbie

Rank: 1

Credits
19.00

 China

Post time: 2020-4-23 16:15:01
| Show all posts
((access (filename, F_OK)) == 0)
Reply

Use magic Report

1

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-4-23 18:00:02
| Show all posts
Yes _access

if ((_access ("crt_ACCESS.C", 0))! = -1)
Reply

Use magic Report

0

Threads

25

Posts

19.00

Credits

Newbie

Rank: 1

Credits
19.00

 China

Post time: 2020-4-24 12:00:01
| Show all posts
Ha ha, I use gcc,
Is _access in VC?
Reply

Use magic Report

0

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-4-26 08:15:01
| Show all posts
PathFileExists ()
Reply

Use magic Report

0

Threads

9

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 Invalid IP Address

Post time: 2020-6-7 11:45:01
| Show all posts
FindFirstFile() returns a HANDLE
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list