It is called Visking tubing, and the water rises because of osmosis. I can't be bothered to work out exactly how the three laws of thermodynamics apply to osmosis but you can bet two things
  1. They do apply
  2. You are not the first one to think of using Visking tubing for this purpose.


Here is a wiki link: wikipedia link