#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
fstream file_In,file_Out,file_Read;
char ch,lat[100],lon[100];
int n=0,j=0,change=0,latitude=0,longitude=0,dot=0;
file_Out.open("output.txt",ios::trunc|ios:

ut);
file_In.open("accounts.txt",ios::in);
if(!file_In)
{
cout<<"error"<<endl;
}
else
{
while(file_Read.get(ch))
{
if(ch==',')
{
change=1;
}
else
if(change==1)
{
lon[n]=ch;
n=n+1;
}
else
{
lat[j]=ch;
j=j+1;
}
}
while(file_In.get(ch))
{
cout<<ch;
if(ch==' ')
{
file_Out<<"PtcUsername:";
}else
if(ch==':')
{
file_Out<<",PtcPassword:";
}else
{
file_Out<<ch;
}
}
file_Out.close();
file_In.close();
}
system("pause");
return 0;
}