I am sure a straight razor can be made from flat file. The high carbon in the steel should be good for razor making.
You get ahead start because some flat files already have the basic shape (5/8"x3/16"x9").
Pick one up in a hardware store for a few bux.