I want to know how rename function work. Can we access the information of file such as it's attributes,size just by giving it's name.
Please help me
I want to know how rename function work. Can we access the information of file such as it's attributes,size just by giving it's name.
Please help me
>>I want to know how rename function work.
Depends on the OS.
>> Can we access the information of file such as it's attributes,size
Yes. Depends on the OS.
gg
Can u plz tell me for Win98 and linux These r 2 OSs i am usingOriginally Posted by Codeplug
Windows:
MoveFile[Ex]()
GetFileAttributes[Ex]()
*Nix (POSIX)
rename() (standard C as well)
[f]stat()
Your standard C implementation being used on Windows should have rename() as well. stat() is also typically available (depending on your compiler/libraries).
gg