Mix sugar, cocoa and flour together in saucepan. Add small amounts of milk until smooth.
Cook on low heat until thick. Add margarine and vanilla. Serve on buttered toast.