Hi all, i need to read data from a text file and write in keil µvision program. How to open file, read, write and close file works in µvision programs. Thanking you,
Hi , sorry that i opened another thread, i wanted to say that i need to use Read, and write .txt,.xml files in C51 programs. Thanking you.
"i need to use Read, and write .txt,.xml files in C51 programs." Are we still talking about files created by your PC-based GUI? Remember: C51 programs run on 8051 processors in embedded hardware - they do not run on PCs! Therefore, before doing any file operations in a C51 program, you will have to implement a file system on the embedded target hardware! Part of implementing the file system will be to provide the necessary functions to read & write files. Once you have implemented your file system on your embedded target hardware, you will also have to figure out a way to get the files generated on your PC by your GUI from the PC and onto your embedded target hardware. I don't think you really want to do that, do you??! You still haven't said why you can't have your GUI generate a 'C' source file...