PDA

View Full Version : Looking for help with C



Studoku
2012-02-20, 12:11 PM
Since this forum has a lot of computer experience, I figured it would be worth asking.

I'm making an interpretor as part of a Computer Science project. Unfortunately, it needs to be in C. I'm good with Java and I know the basics of C but this goes beyond what I know.

Specifically, I need to be able to read text input from a file and output text to another. Once I've got that, I think I can handle the rest.:smallsmile:

Thanks in advance.

Last_resort_33
2012-02-20, 12:30 PM
{{Scrubbed}}

Grinner
2012-02-20, 01:02 PM
An actual interpreter, parser and all? Or just predefined input and output?

Either way, start here (http://www.cprogramming.com/tutorial/cfileio.html).

If you need help writing a parser, refer to this (http://www.friedspace.com/cprogramming/intro3.php).

Studoku
2012-02-20, 02:07 PM
is this too much of a troll answer? (http://lmgtfy.com/?q=reading+from+and+writing+to+a+text+file+in+C)
Thanks. I never knew about this 'Google' thing. It's a good thing you told me about it or I'd still be starting threads and discussion like some kind of internet dinosaur.


An actual interpreter, parser and all? Or just predefined input and output?

Either way, start here (http://www.cprogramming.com/tutorial/cfileio.html).

If you need help writing a parser, refer to this (http://www.friedspace.com/cprogramming/intro3.php).
An actual interpreter, although it's for a fairly simple language, built for a specific purpose. I think I know what I'm doing (ie it's probably going to go badly wrong)- the biggest issue is actually getting the file operations done.

I'll check the links out, thanks.