Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

making a word file from a text

Status
Not open for further replies.

daryoosh23

Newbie level 3
Newbie level 3
Joined
Mar 14, 2013
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,349
In a text editor environment I have a set of chemical reactions which are represented as "rxn[A,3B,C,K]" indicating "A+3B-->C" with rate K.
I want to write a few lines of code for converting it from the prior format to the secenond format in Microsoft word or even Latex. I want to put the rate value "K" on the top of --> (arrow) in the second format. Can you help me?
 


This is possible to convert as rxn[A+3B,C,k] to A+3B-->C but rate k is not possible i think so..! by taking the input from txt file as
open(IN,"input.txt");
while($line=<IN>)
{
@array=split("[",$line); #$array[1] contain "A+3b,C,k]"
@reaction=split(",",$array[1]); #now $reaction[0] =A+3B $reaction[1]=C
chop($reaction[2]);
print "$reaction[0] --$reaction[2]-> $reaction[1]"; #End of program
}
O/p is
A+3B --K-> C is possible ..!
I think this post is helpful.
Regards,
BalaSekar.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top