Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Create the Append command a new file if it not exists?

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> AVR-DOS
View previous topic :: View next topic  
Author Message
pedro

Bascom Member



Joined: 24 Apr 2009
Posts: 128

portugal.gif
PostPosted: Sat Jun 06, 2009 11:58 am    Post subject: Create the Append command a new file if it not exists? Reply with quote

Hello
I want write every 5 minuts data to a file in a sd card
the file name is composed of xxxxxxxx.xx
pcb day month .year - like this 00020606.09
Open Logfile$ For Append As #3
Print #3 , "Hello"
Flush #3
Close #3
Last_logfile$ = Logfile$ 'save the filname

What can i make that next day it create a new file to add data again
Every day a new file, create the Append comand automatic a new file if it not exists?

Thanks for help
Regards
Sato
Back to top
View user's profile
oe9vfj

Moderator



Joined: 17 Jun 2004
Posts: 269
Location: Austria, Hard

austria.gif
PostPosted: Wed Aug 12, 2009 1:30 pm    Post subject: Reply with quote

Yes it creates a new one, if a file with that name dose not exists
_________________
regards Josef

DOS - File System for BASCOM-AVR on http://members.aon.at/voegel
Back to top
View user's profile Visit poster's website
pedro

Bascom Member



Joined: 24 Apr 2009
Posts: 128

portugal.gif
PostPosted: Mon Aug 17, 2009 4:50 pm    Post subject: Reply with quote

Thank You Josef

I have make test last month and it works good like you said

Thanks for Your, great work Your AVRDOS

Regards
Pedro
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> AVR-DOS All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum