def to_c_string(file_name):
    """
        Converts a set of SQL queries to a C string.

        Arguments:

            file_name -- name of file to read from

        Returns:

            c-formatted string version of the text from the file .
    """

    lines = []
    with open(file_name, "r") as sql:
        lines = sql.readlines()

    new_lines = []
    for line in lines:
        if line != "\n":
            tmp = line.replace("\"", "\\\"")
            new_lines.append("\"" + tmp.strip() + "\" \\")

    out_str = ""
    for line in new_lines:
        out_str += line + "\n"

    return out_str