|
Название: вопрос с файлами Отправлено: ярик от Август 11, 2019, 14:00:26 у меня возник такой вопрос можно ли читать строку вот так
код выглядит вот так t=file_text_open_read('data\file.txt') f=file_text_read_string(t) ff=string_copy(f,0,string_length(f)) (как это сделать?) Название: Re: вопрос с файлами Отправлено: Goo от Август 11, 2019, 14:16:21 manual
file_text_writeln(); file_text_readln(); Название: Re: вопрос с файлами Отправлено: ярик от Август 11, 2019, 17:05:24 я уже смог
gg="" t=file_text_open_read('data\data_gg.txt') repeat (5) { file_text_readln(t) f=file_text_read_string(t) new1=string_replace_all(f,'inst','instance_create') new2=string_replace_all(new1,'_===','x') new3=string_replace_all(new2,'pov',',') new4=string_replace_all(new3,'er','y') new5=string_replace_all(new4,'obj','object1') gg=gg+string(new5) } execute_string(gg) file_text_close(t) |