can some one make me a script that will added Text to a .dat file on a server i need it to check to see if it alrdy their then add it to the next clear line in this formatt wiht the "::" between the text

Example:
Name::Last::YYYYMMDD::AGE


Thanks!!