From: n DOT o DOT s DOT p DOT a DOT m DOT thygesens AT post DOT tele DOT dk (Lasse Krogh Thygesen) Newsgroups: comp.os.msdos.djgpp Subject: Newbie Question - Convert string to numerical value Date: Fri, 03 Sep 1999 02:09:00 GMT Organization: Customer of Tele Danmark Internet Message-ID: <37d32cc7.4183133@news.inet.tele.dk> NNTP-Posting-Host: ip213.vjnxr2.ras.tele.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.inet.tele.dk 936324579 27169 195.249.131.213 (3 Sep 1999 02:09:39 GMT) X-Complaints-To: Department of Abuse NNTP-Posting-Date: 3 Sep 1999 02:09:39 GMT X-Newsreader: Forte Agent 1.5/32.452 Lines: 13 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com c++ related newbie question. I need to convert a string which contain a number to a numerical value. Can anyone tell me which include file and command to use. The string I need to convert is filled with value coming from a text file on the disk. The file is opened and a value is read with the word operator (?) into the string. The value should be an integer, but the word operator won't read the string into an integer. Is this nonsense ? --- [www.lkt.person.dk] --- [www.maverick.subnet.dk] ---