Re: [Gambas-user] reading files

2017-07-24 Thread Jussi Lahtinen
._a = 1 >>._b = 22 >>._c = 333 >> end with >> >> write #hfile, arec as recstruc >> >> 'if you position the hfile pointer back to zero, you can... >> read #hfile, arec as recstruc >> >> close #hfile >> >> end >>

Re: [Gambas-user] reading files

2017-07-21 Thread Shane
Hi tony I think i found a small bug in your code when reading mp3 files with no version 2 tag this function gets a end of stream error Public Function ReadBytes(Count As Integer) As Byte[] Dim res As New Byte[Count] res.Read($Stream) Return res End In the StreamReader Class don't know

Re: [Gambas-user] reading files

2017-07-20 Thread Tony Morehen
Audio or development On 2017-07-20 02:40 PM, Hans Lehmann wrote: Am 20.07.2017 um 20:27 schrieb Tony Morehen: I've uploaded the class with a short command line demo to the software farm. Hello Tony, under which heading can I find the class in the software farm? Honsek

Re: [Gambas-user] reading files

2017-07-20 Thread Hans Lehmann
Am 20.07.2017 um 20:27 schrieb Tony Morehen: I've uploaded the class with a short command line demo to the software farm. Hello Tony, under which heading can I find the class in the software farm? Honsek -- Check out

Re: [Gambas-user] reading files

2017-07-20 Thread Tony Morehen
iginal Message --- From: Shane To: gambas-user@lists.sourceforge.net Sent: Tue, 18 Jul 2017 10:50:43 +1000 Subject: Re: [Gambas-user] reading files i don't know what i am doing wrong Public Struct ID3v1_TAG '(128 bytes) Tag[3] As String 'always TAG

Re: [Gambas-user] reading files

2017-07-20 Thread Gianluigi
;>>>> >>>>>>>> as far as i see it he is saying don't use binary file for fixed >>>>>>>> length >>>>>>>> strings >>>>>>>> >>>>>>>> but as this is an mp3 file tag witch i hav

Re: [Gambas-user] reading files

2017-07-20 Thread Tony Morehen
p://openwebmail.org) -- Original Message --- From: Shane To: gambas-user@lists.sourceforge.net Sent: Tue, 18 Jul 2017 10:50:43 +1000 Subject: Re: [Gambas-user] reading files i don't know what i am doing wrong Public Struct ID3v1_TAG '(128 bytes) Tag[3] As String

Re: [Gambas-user] reading files

2017-07-20 Thread Shane
e To: gambas-user@lists.sourceforge.net Sent: Tue, 18 Jul 2017 10:50:43 +1000 Subject: Re: [Gambas-user] reading files i don't know what i am doing wrong Public Struct ID3v1_TAG '(128 bytes) Tag[3] As String 'always TAG Title[30] As String

Re: [Gambas-user] reading files

2017-07-20 Thread Gianluigi
://gambas.8142.n7.nabble.com/Random-access-files-with-fi >>>>>> xed-length-string-td50880.html >>>>>> [1] http://gambas.8142.n7.nabble.com/vb-code-td59764.html >>>>>> >>>>>> 2017-07-18 9:04 GMT+02:00 Shane : >>>>>>

Re: [Gambas-user] reading files

2017-07-20 Thread Shane
bmail.org) -- Original Message --- From: Shane To: gambas-user@lists.sourceforge.net Sent: Tue, 18 Jul 2017 10:50:43 +1000 Subject: Re: [Gambas-user] reading files i don't know what i am doing wrong Public Struct ID3v1_TAG '(128 bytes) Tag[3] As String

Re: [Gambas-user] reading files

2017-07-20 Thread Gianluigi
it be_ >>>>> _ >>>>> >>>>> IDtag = read #hfile as ID3v1_TAG ? >>>>> >>>>> with doesn't work by the way >>>>> >>>>> >>>>> >>>>> On 18/07/17 12

Re: [Gambas-user] reading files

2017-07-19 Thread Shane
-- Original Message --- From: Shane To: gambas-user@lists.sourceforge.net Sent: Tue, 18 Jul 2017 10:50:43 +1000 Subject: Re: [Gambas-user] reading files i don't know what i am doing wrong Public Struct ID3v1_TAG '(128 bytes) Tag[3] As String

Re: [Gambas-user] reading files

2017-07-19 Thread Gianluigi
;>>> >>>> >>>> >>>> On 18/07/17 12:44, nand...@nothingsimple.com wrote: >>>> >>>> I think >>>>> Read #hfile, IDtag, ID3v1_TAG >>>>> should be >>>>> Read #hfi

Re: [Gambas-user] reading files

2017-07-19 Thread Tony Morehen
hfile pointer back to zero, you can... read #hfile, arec as recstruc close #hfile end -- Open WebMail Project (http://openwebmail.org) -- Original Message --- From: T Lee Davidson To: gambas-user@lists.sourceforge.net Sent: Sun, 16 Jul 2017 12:42:35 -0400 Subject: Re: [Gambas-

Re: [Gambas-user] reading files

2017-07-19 Thread Gianluigi
t; I think >>>> Read #hfile, IDtag, ID3v1_TAG >>>> should be >>>> Read #hfile, IDtag as ID3v1_TAG >>>> >>>> >>>> -- >>>> Open WebMail Project (http://openwebmail.org) >>>>

Re: [Gambas-user] reading files

2017-07-18 Thread Shane
d #hfile, IDtag, ID3v1_TAG should be Read #hfile, IDtag as ID3v1_TAG -- Open WebMail Project (http://openwebmail.org) -- Original Message --- From: Shane To: gambas-user@lists.sourceforge.net Sent: Tue, 18 Jul 2017 10:50:43 +1000 Subject: Re: [Gambas-user] reading files i do

Re: [Gambas-user] reading files

2017-07-18 Thread Gianluigi
rg) >> >> >> -- Original Message --- >> From: Shane >> To: gambas-user@lists.sourceforge.net >> Sent: Tue, 18 Jul 2017 10:50:43 +1000 >> Subject: Re: [Gambas-user] reading files >> >> i don't know what i am doing wrong >>

Re: [Gambas-user] reading files

2017-07-18 Thread Shane
arec as recstruc close #hfile end -- Open WebMail Project (http://openwebmail.org) -- Original Message --- From: T Lee Davidson To: gambas-user@lists.sourceforge.net Sent: Sun, 16 Jul 2017 12:42:35 -0400 Subject: Re: [Gambas-user] reading files On 07/16/2017 06:57

Re: [Gambas-user] reading files

2017-07-17 Thread nando_f
#hfile, arec as recstruc > > > > 'if you position the hfile pointer back to zero, you can... > > read #hfile, arec as recstruc > > > > close #hfile > > > > end > > > > > > > > > > > > > > -- > > Open WebMa

Re: [Gambas-user] reading files

2017-07-17 Thread Shane
-- Open WebMail Project (http://openwebmail.org) -- Original Message --- From: T Lee Davidson To: gambas-user@lists.sourceforge.net Sent: Sun, 16 Jul 2017 12:42:35 -0400 Subject: Re: [Gambas-user] reading files On 07/16/2017 06:57 AM, Shane wrote: given this example PRIVATE SU

Re: [Gambas-user] reading files

2017-07-17 Thread nando_f
ebMail Project (http://openwebmail.org) -- Original Message --- From: T Lee Davidson To: gambas-user@lists.sourceforge.net Sent: Sun, 16 Jul 2017 12:42:35 -0400 Subject: Re: [Gambas-user] reading files > On 07/16/2017 06:57 AM, Shane wrote: > > given this example > >

Re: [Gambas-user] reading files

2017-07-16 Thread T Lee Davidson
On 07/16/2017 06:57 AM, Shane wrote: given this example PRIVATE SUB BinaryRead(FilePath AS String) DIM binaryFile AS File DIM i AS Integer DIM b AS Byte DIM s AS Short DIM s1 AS String DIM s2 AS String ' Read binary file binaryFile = OPEN FilePath FOR READ READ #binary