home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 8,921 of 10,840   
   Raoul Watson to Raymond H.   
   Re: How to put a big file into a variabl   
   29 Oct 04 13:18:30   
   
   From: WatsonR@IntelligenCIA.com   
      
   "Raymond H."  wrote in message   
   news:hNUfd.12794$Qs6.1216912@news20.bellglobal.com...   
   > Hello,   
   >      I'm not able to put a big file (600Mo) into VarDonnéesDuFichier3 .   
   > With the MsgBox line, VarDonnéesDuFichier3 displays zero (o). Where is my   
   > problem? Is there an other way to open a big file (600Mo) into   
   > VarDonnéesDuFichier3 (with the special data like a mpeg) ?   
   >   
   >             Dim VarDonnéesDuFichier3  as String   
   >             NumFichier = FreeFile   
   >             Open Text2.Text For Binary Access Read As #NumFichier   
   >                 VarDonnéesDuFichier3 = Space$(LOF(NumFichier))   
   > MsgBox VarDonnéesDuFichier3 'VarDonnéesDuFichier3  gave zero (0) with a   
   600   
   > Mo file.   
   >                 Get #NumFichier, 1, VarDonnéesDuFichier3   
   >             Close #NumFichier   
      
   Did you try using a Richtextbox instead?   
   Maybe there is a better way of reading 600Mb worth of data. If you elaborate   
   why you need it in a continuous string maybe someone can figure out an   
   alternative way.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca