Hello just want to ask whether I can use file management in uVision3? Because I tried to use which is this " file *fp;" but i say file is an undefined identifier. What should I do to open a file to read and write can anyone tell me thanks!
The reason why I want to open a file to read and write is because I want to pass value from other program to this program. If anyone know the other method can teach me please thank alot!
Hi i am different from the person that you know. Just that we have same name and surname. The reason why i want to open file from C is because I want to read value from vbScript. So is it possible to open file from C? Cause i tried before the "File" method but it gave me an error. studio.h does not have "FILE" in it. So it gave me that error. So is there anyway to get the "File" library? Thanks alot!
"The reason why i want to open file from C is because I want to read value from vbScript."
So where does VBScript fit into embedded software running on an 8051?
Yes, of course the 'C' programming language can support file management - a lot of PC applications are written in 'C'.
But for an embedded 8051 system to use file management you would first need some sort of physical file storage medium, physically attached to the 8051, on which the files could physically be stored.
Then you would need to add a file management system in your software.
Then - and only then - could your program make use of these file management faclities.
"So is there anyway to get the "File" library?"
There is, but how do you think that the 8051 will physically access the files?
See: http://www.keil.com/support/man/docs/c51/c51_xa_librarydif.htm
Where do you fit the hard drive to your 8051? And how do you install Windows into your 8051?
You normally make use of a serial port to transfer configuration to an embedded application. And you normally make use of EEPROM or a flash sector to save that configuration.
Yes, embedded applications can do file operations. But you normally then have to add a SD memory card or similar. And then you need to add support for a file system, so the embedded application can support locating, opening and reading the files on the SD card.
View all questions in Keil forum