def write_to_text_file(file_path, file_contents):
    """
    Writes the given file_contents to the file_path in text format
    if current user's permissions grants to do so.
    :param file_path: Absolute path for the file
    :param file_contents: List<str> List of lines
    :return: void
    :rtype: void
    :raises: This method raises OSError if it cannot write to file_path.
    """
    with open(file_path, mode='w', encoding='utf-8') as handler:
        for line in file_contents:
            handler.write("%s\n" % line)
    return file_path