ofstream ofs("atom.txt");for (int x=0;x<100000;x++){ char buffer[255]; UINT a=GlobalGetAtomName(x,(char*)&buffer,sizeof(buffer)); if (a!=0) { if (buffer[0]!='#') ofs << buffer << endl; }}ofs.close();