try-with-resources .cursorrules prompt files

The "try-with-resources" statement in Java automatically closes resources like files or sockets after use, reducing the risk of resource leaks and simplifying code management.