mustafa06
03-22-2009, 10:43 AM
İn User.txt
Name Mustafa > [ Not 1011 so check false ]
1011 Location Turkey > [ 1011 so check true ]
1011 Os WindowsXP > [ 1011 so check true ]
1011 Pc > [ 1011 so check true ]
Football > [ Not 1011 so check false ]
I want ;
Readto User.txt table , and check all line on User.txt after if check is true write to database.txt...
Code
mytable = TextFile.ReadToTable("User.txt");
mystring = TextFile.ReadToString("User.txt");
for a,q in mytable do
find = String.Find(mytable[a], "1011", 1, false);
if find ~= -1 then ---Dont Write Football...
read = TextFile.ReadToString(mystring);
mytable = TextFile.ReadToTable(mytable);
TextFile.WriteFromTable(cfgdata, read.."\r\n"..mytable[a], false);
end
end
How :huh
Name Mustafa > [ Not 1011 so check false ]
1011 Location Turkey > [ 1011 so check true ]
1011 Os WindowsXP > [ 1011 so check true ]
1011 Pc > [ 1011 so check true ]
Football > [ Not 1011 so check false ]
I want ;
Readto User.txt table , and check all line on User.txt after if check is true write to database.txt...
Code
mytable = TextFile.ReadToTable("User.txt");
mystring = TextFile.ReadToString("User.txt");
for a,q in mytable do
find = String.Find(mytable[a], "1011", 1, false);
if find ~= -1 then ---Dont Write Football...
read = TextFile.ReadToString(mystring);
mytable = TextFile.ReadToTable(mytable);
TextFile.WriteFromTable(cfgdata, read.."\r\n"..mytable[a], false);
end
end
How :huh