i also thought of Chrisname idea. but i not using bool..lol i just use string:
1 2 3 4 5 6
|
if (f.is_open){
x=1
}
else{
x=0
}
|
Chrisname code is more standard and better. lol
but my prob is getting the filename.
i have read through the link u gave but still didt get any idea on getting a file name.
coz in my program i need to set user read/write permission through the file lvl.
the file lvl as i already mention
1 2 3
|
abc_10.txt
aaa_9.txt
bbb_8.txt
|
how i gonna get the number at back as the file lvl?
so i can set the user permission.
and 1 more question,
how i gonna know in the directory have how many file?
example:
i have files store is directory
Files
inside
Files
i have
1 2 3
|
abc_10.txt
aaa_9.txt
bbb_8.txt
|
then how i get those filename in directory
Files
?