Can pass filename as "" to prevent making file