What is the difference between the functions read() and pread() in unix? When choosing between them, what points should I take into considerati
read()
pread()
Google gave me man pread.
If you read() twice, you get two different results, which shows that read() advances in the file.
If you pread() twice, you get the same result, which shows that pread() stays at the same point in the file.
pread(