generalize getline and putstr to fgetline and fputstr
add fread and fopen BIFs
add variable definition
add feof BIF
implement sockopen