Write data to a text file
Hi All,
Does any one have any idea on how to write java output
(ie) int recCount=0;
for (i=0;i<n;i++)
{
process
}
recCount++
is there any possibility to write the last record count that after executing the loop,to a text file (note pad) with system date and time
Notepad details must be:
recCount: :
DateandTime:>
i want to create a txt file,when the loop ends.when i click a button ,a function with for loop executes,at the end of the execution i want to create a a new text file with the no of recordcounts
> i want to create a txt file,when the loop ends.
>
> when i click a button ,a function with for loop
> executes,at the end of the execution i want to
> create a a new text file with the no of recordcounts
What do you want to write in the file?
but anyway why dont you use FileWriter with append mode and write the whatever you want to write after executing every loop.