on my program I have write
at global
dim Tr as Textreader
dim List1 as LIST
dim Fposition as string , Fsign as string
at activity
list1.initialize("List1")
TR.Initialize2(File.OpenInput("\mnt\sdcard","smsposition.txt", "windows-1253")
list1=tr.readlist
the file have only 2 lines
Fposition=list1.get(0)
Fsign=list1.get(1)
util now alll are very good
now I have an other file the sms.txt This file have 8 lines
I transfer the sms.txt file to the card useing the SMB libary.
now I use the command
TR.Initialize2(File.OpenInput("\mnt\sdcard","sms.txt", "windows-1253")
list1=tr.readlist
and here is the problem the list1.size-1=-1 (it does not read the file)
I have eject the card to my pc and I read the card and there ie the file and inside are 8 lines of data
something is going wrong with the second initialize but I do not know what
Kalarakis Mixalis
Greece
at global
dim Tr as Textreader
dim List1 as LIST
dim Fposition as string , Fsign as string
at activity
list1.initialize("List1")
TR.Initialize2(File.OpenInput("\mnt\sdcard","smsposition.txt", "windows-1253")
list1=tr.readlist
the file have only 2 lines
Fposition=list1.get(0)
Fsign=list1.get(1)
util now alll are very good
now I have an other file the sms.txt This file have 8 lines
I transfer the sms.txt file to the card useing the SMB libary.
now I use the command
TR.Initialize2(File.OpenInput("\mnt\sdcard","sms.txt", "windows-1253")
list1=tr.readlist
and here is the problem the list1.size-1=-1 (it does not read the file)
I have eject the card to my pc and I read the card and there ie the file and inside are 8 lines of data
something is going wrong with the second initialize but I do not know what
Kalarakis Mixalis
Greece