I had to do this in the 80s when I made a mistake that resulted in the file being erased. The fun doesn't begin until you start debugging it.
Actually this happened twice: once, someone else's code but I had the listing. Another, my own code but no listing.