srbharadwaj
Broken In
Hi All,
This is the content of the file say 'input.txt'
As you can see its in a very haphazard manner, which is a big problem, but if you indent it properly it looks something like this
Now what i reqire is the tree path for the last element example say for 'doctor' the tree-path is
and that of 'elephant' is
and that of 'dead' is
';' indicates end of the path
can any automate this using any programming lang its very urgent
Thanks
This is the content of the file say 'input.txt'
Code:
apple (
ball (
cat (
doctor(),
elephant()
),
cup (
dead()
)
));
Code:
apple(
ball(
cat (
doctor(),
elephant()
),
cup (
dead()
)
)
);
Code:
apple.ball.cat.doctor()
Code:
apple.ball.cat.elephant()
Code:
apple.ball.cup.dead()
can any automate this using any programming lang its very urgent
Thanks