⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.cpp

📁 这是.邮件服务器的代码
💻 CPP
字号:
#include "stdio.h"
#include "string.h"

void main()
{

	printf("This program converts the old popuser.ctl to the new format of Inetserv > 2.5\nLooking for popuser.ctl...");
	FILE *fp,*fpx;
	fp = fopen ("popuser.ctl","rt");
	char t1[255];
	char t2[255];
	char t3[255];

	if (fp == NULL)
	{
		printf("popuser.ctl not found.");
		return;
	}
		printf("Found.\nConverting...");
	
		fpx = fopen ("popuser.new","wt");
	char tempstr[255];
	while (!feof(fp))
	{
		fgets(tempstr,255,fp);
		sprintf(t1,"%s",tempstr);
		fgets(tempstr,255,fp);
		sprintf(t2,"%s",tempstr);
		fgets(tempstr,255,fp);
		sprintf(t3,"%s",tempstr);


		t1[strlen(t1)-1] = '\0';
		t2[strlen(t2)-1] = '\0';
		t3[strlen(t3)-1] = '\0';

		if (!feof(fp))
		{
			
			fprintf(fpx,"\'%s\';\'%s\';\'\';\'%s\'\r\n",t2,t3,t1);
			


		}
	}
	fclose(fpx);
	fclose(fp);


	printf("Done.\nRename popuser.new to popuser.ctl and try it.");
		return;

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -