We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
hai i want to read & write .xml or .txt file ..... i dont know how to do this.....kindly help me.......... thanks in advance
But there are embedded equipment that supports receiving or emitting XML data. For example motor-driven cameras that accepts XML commands to pan, tilt, zoom, ...
Very well then. Maybe the OP can enlighten us?
tel me how to read a .txt file in KEIL c
Open serial port. Wait for text file to be transmitted from PC. Process contents.
Keil C51 provides no built-in file support - see:
http://www.keil.com/support/man/docs/c51/c51_xa_librarydif.htm
Therefore, if you want file support, you will have to implement it yourself, or incorporate some 3rd-party support.
You would also, of course, need some storage medium capable of holding your files...
Or, as already suggested, leave the file handling to a PC, and just have it send the data over a serial link, or similar...
What 8051 are you using and what is the text file on?
so i cant do File operations like ANCI C..... Actually i am using WINBOND W77E58 controller
Of course you can - if you really want to!
It's just that they are not "built-in" with Keil C51 - so you would have to implement them yourself.
"i am using WINBOND W77E58 controller"
And where, exactly, will these files be stored...?
What physical storage medium are you using?
How is that storage medium physically connected to your WINBOND W77E58 controller?