using namespace std; int main ()
ofstream yozish; // fayfga yozfsñ oglminf ñosil gilfsñ
yozish.open(”namuna.txt”);
// ya.cgi namuna.LxL nomfi fayl hosff giffnaJf.
// agar.oamu.oa.fxt faylf ofJi.oJa.o bo'fsa,
// uofng eskf giymarfarf o'cñirifaJi
// va ya.ogf fayl hosf2 giffnaJf
yozish << ”Matnli faylga ms'lumot yozish” << endl; yozish << ”Juda oson!” << endl;
yozish.close() ; // faylni yoplsh return 0;
include include
#include using namespace std; int main ()
ifstream oqish; // fayfJan o'gfsñ ogfmini hosff gfffsñ
string satr; oqish.open(”namuna.txt”);
if (!oqish.is_open())
}
ostream sinfi funksiyalari
ostream& seekp ( streampos pos );
ostream& seekp ( streamoff off, ios base: :seekdir dir );