[Gambas-user] my stream is not working

lozza1978 piresl at ...626...
Sun Jan 13 21:05:11 CET 2008


Hi All,

after playing with the stream for a few hours ive come to the conclusion
that 

'EXEC ["dvdauthor", "-o", Textbox3.Text &/ "dvd", "-x", Textbox3.Text &/
"dvd.xml"] FOR READ AS "chaps"'

is not a stream and i guess thats the reason why i cant chaps_Read() any
data,


lozza1978 wrote:
> 
> HI All,
> 
> I just need a quick bit of help as to where im going wrong here.
> 
> EXEC ["dvdauthor", "-o", Textbox3.Text &/ "dvd", "-x", Textbox3.Text &/
> "dvd.xml"] FOR READ AS "Chaps"
> 
>  PUBLIC SUB Chaps_Read() 
> DIM hFile AS File
>  DIM sLine AS String 
> DIM aString AS String[] 
> DIM filsize AS Integer
> 
> READ #LAST, sLine, Lof(LAST) 
> sOutput &= sLine
> 
> hFile = OPEN "/home/don/Desktop/11percent" FOR CREATE  
>  WRITE #hFile, sOutput, Len(sOutput)
>     CLOSE #hFile
> 
> PUBLIC SUB Chaps_Quit()
>   PRINT "process completed"
> END
> 
> The test file does not get created, and when the process is complete, the
> 'process completed' does not print, (the the exec command is still running
> in the background though, while process is running)
> 
> but when I do 
> EXEC ["ls", "-la", "/tmp"] FOR READ AS "Chaps"
> this works and prints output to file.
> 
> hmm so close and yet so far,
> 

-- 
View this message in context: http://www.nabble.com/my-stream-is-not-working-tp14785370p14790363.html
Sent from the gambas-user mailing list archive at Nabble.com.





More information about the User mailing list