Hi all,
I need to know how will you write a enum value to an output file.
The Program Is As Follows:
typedef enum {
ID,INTLITERAL, BEGIN, END, READ, WRITE
}token;
when i read a "begin" in an input file say, in.txt i return BEGIN. and after returing i want to write "BEGIN" to a output file, say out.txt.
how do i do it.
thanks for helping.
aeaswara.
I need to know how will you write a enum value to an output file.
The Program Is As Follows:
typedef enum {
ID,INTLITERAL, BEGIN, END, READ, WRITE
}token;
when i read a "begin" in an input file say, in.txt i return BEGIN. and after returing i want to write "BEGIN" to a output file, say out.txt.
how do i do it.
thanks for helping.
aeaswara.