i am trying to write in txt file and my data are comma separated numbers which are appended every time. i have two types of data which i am trying to compare so if we are using one txt file then it has to be written in new line .
1,5,10,15,22,32
other line is
1,5,7,12,8,99
so its simple data but with time it grows as new data are appended and in worst situation may become big. may be 10-15000 numbers in each line i have also doubt that if these txt files are open and closed fast enough data may corrupt. so i would like to write these two lines in two different txt file instead of one. where is more integrity and performance ??
should i use only one file or two files are preferred. dont want to use database as database is always naughty and may create some load on server which can be avoided with txt file