From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc89c,d6a14f3e2414c3f6,start X-Google-Attributes: gidfc89c,public X-Google-Thread: f678f,d6a14f3e2414c3f6,start X-Google-Attributes: gidf678f,public From: "Data64" Subject: C++ on unix -- dealing with text files Date: 1999/02/27 Message-ID: <7b91fa$66u@sjx-ixn10.ix.netcom.com>#1/1 X-Deja-AN: 449295796 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Organization: Netcom X-NETCOM-Date: Sat Feb 27 7:03:06 AM PST 1999 Newsgroups: comp.unix.osf.misc,comp.unix.programmer Hi, I have a question on using the standard iostream classes for manipulating text files. I am using Dec C++ on a Alpha-Digital Unix environment. How do you implement file or range locking using the iostream classes. Unix has C funcitons lockf() and fcntl() that work on file descriptors. Is there an equivalent to that in C++. I did not find anything in the online help. Thanks, Shuchit