<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<br>
<div class="moz-cite-prefix"><a class="moz-txt-link-abbreviated" href="mailto:nhoseini@uk.ac.ir">nhoseini@uk.ac.ir</a> wrote:<br>
</div>
<blockquote
cite="mid:afd8277a0474ba6da4c08dcb049870d2.squirrel@webmail.uk.ac.ir"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p>Hi: I am reading a file line to \a. Then \a is a string such as
"aaa bbbb 4 5 34.5". I would like to read the parts
"aaa" and "bbbb" to new strings and the numbers 4, 5,
etc, to number variables. Would you please help me to do that.
Thanks.<br>
</p>
</blockquote>
<br>
\newcount \counta<br>
\newcount \countb<br>
<br>
\def \parsea #1 #2 #3 #4 #5\relax <br>
{%<br>
\def \stringa {#1}%<br>
\def \stringb {#2}%<br>
\counta = #3<br>
\countb = #4<br>
\message {I don't know what to do with #5 because it
contains a decimal point}%<br>
}<br>
<br>
\expandafter \parsea \a \relax<br>
<br>
<i>Caveat lector -- </i><b>untested</b><i>.</i><br>
<br>
Philip Taylor
</body>
</html>