Of course, my way requires reading the file, which is why I think your way is fine for now :)