added data and myfile (iostreams)
add data and myfile