I am doing a project on RFID. I would like to know if there is any option to open a file from computer ie like fopen in c language. if there is then what is it? If not, Any other alternative?
I would like to know if there is any option to open a file from computer
Of course there is. But, it depends on where your file will be stored. Where WILL your file be stored?
For example i store it in Local disk c of my laptop and i want to open that file if certain condition is satisfied. How can i do that?
How can i do that?
How would you open a file on my computer from your PC? The answer is that you can't. The Arduino is a computer, albeit a tiny little one. It can not open files on another computer.
What it can do is send data to the serial port. Something like "Hey, I need the data in C:\Temp\uselessStuff.txt". If there is an application running on the PC that is listening to the serial port that the Arduino is talking to, that application can parse the data it receives, and discover that it needs to spool a file back out the serial port. The Arduino can then read the serial data as though it was a file.
So now I have to create an application which can read the serial data from arduino and send it back to it? Is there any application which does that? If not, how do I create it? Can I link it to a c program?
The demo in this Thread shows [urlhttp://forum.arduino.cc/index.php?topic=225329.msg1810764#msg1810764]how to communicate between an Arduino and a PC using the Python programming language[/url] on the PC.
Python is perfectly capable of reading and writing files on the PC.
There is no need to use Python if you prefer programming your PC using another language. The general principles will be the same in all languages.
...R