def read_file(filename):
    """
    opens and read a file from file system
    
    returns file content as data if ok
    returns None is error while reading file
    """
    try:
        fhnd = open(filename)
        data = fhnd.read()
        fhnd.close()
        return data
    except: 
        return None