def next_command(file_name):
    """ Get the first file line - truncate to the current pointer position."""
    with open(file_name, 'r+') as f:
        line = f.readline()
        remaining_lines = f.readlines()
        f.seek(0)
        f.writelines(remaining_lines)
        f.truncate()
    return line
