#include <stdio.h>
#include <string.h>

int main() {
	int num = 100;
	char str[num];

	strcpy(str, "/home/rupesh/abcd");
	FILE *fp = fopen(str, "w");

        sprintf(str, "Test line\nSecond line %d\n", num);
	fprintf(fp, str);

	fclose(fp);
	return 0;
}
