File Functions + String Functions
#1

Код:
        new string[255];
	new String[255];
	new File:example = fopen("input.txt", io_writeread);
	fwrite(example, "I just wrote here");
	fread(example, string);
	fclose(example);
	
	new File:example2 = fopen("output.txt", io_write);
	new stringLength = strlen(string);
        strmid(String,string,0,stringLength / 2);
	fwrite(example2,String);
	fclose(example2);
i want to write half of the sentence:
I just wrote here >> I just
Reply


Messages In This Thread
File Functions + String Functions - by NoaM[W] - 19.12.2012, 20:00
Re: File Functions + String Functions - by LarzI - 19.12.2012, 20:06
Re : Re: File Functions + String Functions - by NoaM[W] - 19.12.2012, 20:13

Forum Jump:


Users browsing this thread: 1 Guest(s)