What is the energy distribution of light if it has an infinite length? What is the energy distribution of light if it has an infinite length? 

I have read in one of the answers here on phys.SE that light has actually an infinite length. But then what is the energy distribution of that electromagnetic wave?
 A: 
What is the energy distribution of light if it has an infinite length?

You are confusing two frameworks here, instead of fusing them.
Light classically is an electromagnetic wave traveling with velocity c. It does carry energy and this is given by the Poynting vector, 

the Poynting vector represents the directional energy flux density (the rate of energy transfer per unit area, in units of watts per square metre ($W·m^{−2}$)) of an electromagnetic field

It describes well the energy the earth gets from the sun which allows us to be here and communicate. 
The wave, a laser beam pointed to space for an interval delta(t) will travel at the velocity c and dissipate finally  angularly into single photons. Thus there is no infinite length of travel for a beam of light.
Photons are the quantum of light, the smallest bit of light, traveling with velocity c and carrying part of the energy of the original beam as $E=h\cdot\nu$.
Photons travel in empty space until they hit a target where either they lose energy or their energy is degraded enough to be absorbed in some atom/molecule by raising the energy level of an electron.
So in both forms there exists an expression for energy, and the wave dissipates into single photons at very large distances, which eventually may disappear as explained above. Single photons that do not meet obstacles travel very far, as seen by the light reaching us from stars and galaxies and the beginning of the big bang, as cosmic microwave background. Their energy is given by the $h\cdot\nu$ of the time of detection.
A: Light doesn't has infinite length, it travels infinite length (if it is allowed without distraction i.e, without the absorption of energy). You have the bulb in your home working under the principle of heating effect of electric current. Once you switch on the bulb, light travels with the speed of $3X10^8$ m/s, just imagine how fast it will be. Lets assume that you switch on the bulb and switch it off swiftly. lets think hypothetically that you are seeing the situation in slow motion. Once the light is switched on and switched off, light travels and collides with the walls of the room. If the wall of your room is $30$m away from the bulb, then you will see first collision to the wall at $3$ns. At the end of $1$s you would had seen about $10^8$ collisions if there was no absorption of energy by the molecules of the wall. But there is the absorption of energy after each and every collision. If it wouldn't been, there was no requirement of keeping on the bulb all while, it would have been enough if you switch it on once and switch it off. After each and every collision, atoms of the wall absorb energy and at the end of $1$s you will see no light (light energy is absorbed by wall). If your room had no walls, light would had spread in all directions and it would travel infinite length (if there is no absorption of energy after that). 
