We have two ways 2 access files . Open and its friends and mmap system call . When to use mmap() and what are its advantages?

Well if you need to map the file's contents into the user's address space, then use mmap().

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.