Hey,
I've encountered a rather strange issue with Arduino. The IDE only compiles given examples, and when we type another ode of our own, it gives
<
Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Uno"
readlink C:\Users\saini\OneDrive\Documents\Arduino\Blink2\Blink2.ino: The system cannot find the file specified.
Error compiling for board Arduino/Genuino Uno.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
/>
At first i thought that there was a fault with the board, went to the vendor got another, and it still shows the same error.
At the vendor's place, when i was checking for the authenticity, i uploaded the blink example,it worked fine. when i was home, i typed the very same code( for different pin number), and it gave the above error. However, when i made changes to the 'Blink' example, it worked. Again when I change the name of the file( Blink-> Blink2, using Saveas option), it showed the same error.
Can someone help me with the fix?