If the old fixture worked, at least one of the white wires is hot.
The easiest way to check which is hot is to use a non-contact tester. If the fixture is already removed, leave the two wires bundled together with a wire nut over the end. Put a wire nut on the single white wire. Turn the breaker back on. Only one of those should register on tester. That is the hot side. The other should not register. That is the neutral.
Once you know which wire is hot, mark it with black tape or a permanent marker.
If the the fixture is still attached, you can do the same thing with the fixture hanging down. Once you know what is what, turn the breaker back off before wiring.
The black wire goes to the hot wire, the white to the neutral. The ground wire should be attached to a green or bare wire if there is one in the box, or to the box itself if it is metal. If not, just cap it.
From the comments posted above I understand....
You say that you measure a hot to neutral short at the electrical box for one particular circuit. On the other hand you say that no short is measured across hot to neutral at the outlet boxes.
This can mean one of two things.
(One) Something severed one or both of the wires between the outlet string and the breaker box and in the process caused the two wires to become simultaneously shorted on the breaker box side of the break.
(Two) The shorted pair from the breaker box is feeding a different circuit than you think it is.
For the first case you should really think about what has changed in your building between now and when the outlets used to still function properly. In most cases it is unlikely that wires spontaneously break and short together without there being some interposing disturbance of the wiring. This can give a clue of where to start looking. Did something get nailed or screwed to a wall someplace? Did a window get replaced?
I can think of one case where a wire break/short could happen and that is if there was a loose or high resistance connection that over time caused so much heat to be produced wherein the wires melted apart and also shorted due to the insulation burning off. This type of failure is most likely going to happen inside an electrical box itself where connections exist.
For the second case the obvious thing is that you need to guide your attention to the correct circuit. Note that I have seen many cases where the breaker function labels in the breaker box are incorrect. So double check the circuit carefully.
To aid in either case there is a simple technique where you can run a known good conductor from the destination point back over to the breaker box. Just lay it along the floor / ground. Then wire clip one end of it a wire in question at the destination and use the other end of the wire with your multimeter. This effectively makes one of the test leads of your multimeter long enough that you can look for continuity or opens between breaker box and destination without having to buy other types of test gear. This kind of testing should obviously only be done when all the power is turned off. Use a flash light or battery powered lamp if it gets too dark to see.
One other thing to think about....if not already being done....is that when testing for problems like this it is generally necessary to remove all connections from each wire run and test against wire ends that are free ended.
Best Answer
Go purchase the correct tools to do the jobs safely, rigging up some makeshift test device won't solve your problems and could end up injuring or killing you so please ignore those types of answers.
Get a basic multimeter from the hardware store please, read the instructions, and only work on confirmed dead wiring. It only takes 0.01A to kill someone and you're working with 15A-20A here.