I did that back when I was a poor student watching my pennies. The road shocks/vibrations are hell on a flashlight's contact points, so eventually either the switch or the battery contacts (or both) will fail, plus the beam pattern sucks. Sure you may be able to get around both sets of problems by using a fancier flashlight, but at that point you're probably spending as much or more for it than for a decent bike headlight.
Last edited by dorkypants; 12-02-18 at 09:56 PM.
Reason: fix grammatical error