Does anybody know YUV:4:2:0 file format? I mean how a video is stored in a file with this format (in detail).
YUV 4:2:0 isn't a file format its a video data format specifying the ratio between the Y, the U and the V components per pixel. You would typically store such data in a container format such as AVI or MOV.
Have a look at Wikipedia for a description of YUV. A file of YUV will just be a sequential collection of YUV frames.