Hi NG
This kode writes som text in a textfile:
*************** ***************
for (int j=0; j<length; j++)
{
ofstream session_fil("se ssion.txt");
session_fil<<va lues[j]<<endl;
}
*************** ***************
My problem is when i write 1,3,8 to the file only the 8 number will appear.
Think it is because i dont jump to next line in the textfile when i write to
it.
How do i do that?
Thanks
Nize
This kode writes som text in a textfile:
*************** ***************
for (int j=0; j<length; j++)
{
ofstream session_fil("se ssion.txt");
session_fil<<va lues[j]<<endl;
}
*************** ***************
My problem is when i write 1,3,8 to the file only the 8 number will appear.
Think it is because i dont jump to next line in the textfile when i write to
it.
How do i do that?
Thanks
Nize
Comment