Thank you. Yeah DBP and NETLIB has about the same speed on the file functions I get around 50ms with both of these codes.
iavg as integer
print "Press a key"
wait key
dim teststring$(360) as string
for il=0 to 9
iT=timer()
fil_outputfile "ALL.TXT",str_PadRight("value"," ",10) + str_PadRight("sin"," ",20) + str_PadRight("cos"," ",20) + str_PadRight("tan"," ",20) + str_PadRight("asin"," ",15) + str_PadRight("acos"," ",15) + str_PadRight("atan"," ",20)
for i = 0 to 360 step 1
teststring$(i) = str_PadRight(str$(i)," ",10) + str_PadRight(str$(SIN(i))," ",20) + str_PadRight(str$(COS(i))," ",20) + str_PadRight(str$(TAN(i))," ",20) + str_PadRight(str$(aSIN(i))," ",15) + str_PadRight(str$(ACOS(i))," ",15) + str_PadRight(str$(aTAN(i))," ",20)
next i
teststring2$ as string
teststring2$ = teststring$(0)
for i = 1 to 360 step 1
teststring2$ = teststring2$ + chr$(13) + chr$(10) + teststring$(i)
next i
fil_appendfile "ALL.TXT",teststring2$
iTa=timer()
iTR=iTa-iT
iavg=iavg+iTR
print str$(iTR)
sync
next il
print "-----------------"
print "Avg: " + str$(iavg/10)
wait key
iavg as integer
print "Press a key"
wait key
dim teststring$(360) as string
for il=0 to 9
iT=timer()
if file exist("ALL.TXT") then delete file "ALL.TXT"
open to write 1,"ALL.TXT"
write string 1, str_PadRight("value"," ",10) + str_PadRight("sin"," ",20) + str_PadRight("cos"," ",20) + str_PadRight("tan"," ",20) + str_PadRight("asin"," ",15) + str_PadRight("acos"," ",15) + str_PadRight("atan"," ",20)
for i = 0 to 360 step 1
write string 1,str_PadRight(str$(i)," ",10) + str_PadRight(str$(SIN(i))," ",20) + str_PadRight(str$(COS(i))," ",20) + str_PadRight(str$(TAN(i))," ",20) + str_PadRight(str$(aSIN(i))," ",15) + str_PadRight(str$(ACOS(i))," ",15) + str_PadRight(str$(aTAN(i))," ",20)
next i
close file 1
iTa=timer()
iTR=iTa-iT
iavg=iavg+iTR
print str$(iTR)
sync
next il
print "-----------------"
print "Avg: " + str$(iavg/10)
wait key
"People don't fail ..... they stop trying." Specs. P4 2.8GHz 800 FSB | 512MB DDR333
GeForce FX 5200 AGP 256MB | Windows XP Pro Full