I need to do two things in a C/Java program.
1) Rename a file. How can I check if that file is opened for READ OR WRITE by another process. If it is opened for READ, how can I force windows to rename that file.
2) Read file, ONLY when no other process is currently writing to the file.
I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
This tutorial covers some basics of pointer, pointer arithmetic and function pointer.
What is a pointer:
A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…