Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

lower or upper case for file names

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

Bascom Member



Joined: 22 Jun 2004
Posts: 1161
Location: France

france.gif
PostPosted: Thu Jul 05, 2018 5:05 pm    Post subject: lower or upper case for file names Reply with quote

Hi,
when I kill a file "lalong.txt"
and I create a new file from program it is in upper case
Is it a problem or an error ?
Code:

                    Chdir "lalong"
                    Print "kill lalong.txt"
                    Kill "lalong.txt"
                    Waitms 100
                    Ff = Freefile()
                    Open "Lalong.txt"for Output As #ff
                   Write #ff , Sentence
                    Close #ff
                    Waitms 100
                    Ff = Freefile()
                    Open "lalong.txt" For Input As #ff
                    Do
                         Lineinput #ff , Stdir       ' read a line  and result in stdir string
                         Wait 1
                    Loop Until Eof(ff) <> 0
                    Close #ff
                    Chdir "\"       'change to the root directory

 

[img]

the program is working
JP[/img]

_________________
pleasure to learn, to teach, to create
Back to top
View user's profile Visit poster's website
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5922
Location: Holland

blank.gif
PostPosted: Thu Jul 05, 2018 9:02 pm    Post subject: Reply with quote

The FAT only allows upper case. So whatever you name it, it will end up as upper case.
See also https://en.wikipedia.org/wiki/8.3_filename

_________________
Mark
Back to top
View user's profile Visit poster's website
Duval JP

Bascom Member



Joined: 22 Jun 2004
Posts: 1161
Location: France

france.gif
PostPosted: Fri Jul 06, 2018 10:13 am    Post subject: Reply with quote

thanks again Mark
so no problem,
I keep the wiki page, Dos it a little bit far.....

I work on a keyboard (french one) for my app , it is a image of a keyboard and it works on a 5"display touch screen,
Very usefull
I will send it in few weeks... now vacation with my grandkids !
JP

_________________
pleasure to learn, to teach, to create
Back to top
View user's profile Visit poster's website
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