hiii everyone..
im new to the concept of files in c
i need to open a file which contains something like
push a
push b
mul
pop c
things to do:
1.open the file
2.read each line in the file and place it in an array named instructions
3.parse each line and place constants(a,b,c etc) in another array named constants
4.close the file when the file ends.
if u can help me out how to do this i will be really grateful...
thank u guyzz...
im new to the concept of files in c
i need to open a file which contains something like
push a
push b
mul
pop c
things to do:
1.open the file
2.read each line in the file and place it in an array named instructions
3.parse each line and place constants(a,b,c etc) in another array named constants
4.close the file when the file ends.
if u can help me out how to do this i will be really grateful...
thank u guyzz...
Comment