This code Gets the last Write Time from a .txt file.
My Question here.
1. When doing that operation. Will this file be opened or is the file closed ?
2. If the file was opened will the file Close automatically after the Check ?

CurrentSourceTime = System::IO::File::GetLastWriteTime(SourcePath);

This code Forces to "OverWrite" Another file with the same name.
My Question here.
3. When doing this operation. Will any or both of the files be opened ?
4. If the file(s) were opened will the files Close automatically after the Copy ?

System::IO::File::Copy(SourcePath, DestinationPath, true);

(I found out another solution to solve something that had with this to do.)

This code Gets the last Write Time from a .txt file.
My Question here.
1. When doing that operation. Will this file be opened or is the file closed ?
2. If the file was opened will the file Close automatically after the Check ?

CurrentSourceTime = System::IO::File::GetLastWriteTime(SourcePath);

This code Forces to "OverWrite" Another file with the same name.
My Question here.
3. When doing this operation. Will any or both of the files be opened ?
4. If the file(s) were opened will the files Close automatically after the Copy ?

System::IO::File::Copy(SourcePath, DestinationPath, true);
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.