By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,221 Members | 1,663 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,221 IT Pros & Developers. It's quick & easy.

how to read a spice nelist file(*.sp) and turn the schematic into a matrix?

P: n/a
I am a c++ beginner. how can i read a *.sp file which discribe a
schematic file,including subcircuits,resistance, capacitance and
inductance, and then i need to turn the information i get to a matrix
of G,C,L.
Should i use struct lists ?how can i read a line and get the
element's two end's node information and parameter?from characters to
Hoping someone to help me, thank u!

Oct 16 '05 #1
Share this Question
Share on Google+
2 Replies

P: n/a
wow, i'm not a C++ beginner and can't understand what you are trying to
Let me try to:
You have a file in a specific format, and you want to read the
information from the file, parse according to the format, and than
store the information on the memory so you can use it in your program?
If that is thet case, you should read the file line by line using some
io functions, and than parse the string you have in your hand. that you
can do using scanf the its siblings.
Then you should figure the best way to represent the information. That
depends in what do you wanna do with it afterwards. So if you can,
please elaborate on the matter.

Oct 16 '05 #2

P: n/a
ok.I will try, thank u.
Maybe i could use the function "sscanf".

Oct 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.