Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Filetostr() ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00883824
Message ID:
00884279
Vues:
13
Hi George,
I don't quite understand what you're saying.
Will this extract myHTML.txt from within myExe.exe and create file myHTML.html ?
myExe.exe
  .....myMethod()
    if Create_HTML_File( 'myHTML' ) > 0
      .....oWeb.Navigate( 'myHTML.html' )
    endif

  Create_HTML_File.prg
    lparameters tcFile
    local lcStr ,lcFile
    lcFile = ForceExt( tcFile ,'txt' )
    lcStr = FileToStr( lcFile )
    lcStr = TextMerge( lcStr ,.t. )
    Return StrToFile( lcStr ,ForceExt( tcFile ,'html' ) )
  
  myHTML.txt
    ........

  .......
  .......
  .......
  .......
end myExe.exe
>>Don't suppose you an idea on what could have caused it to quit all of a sudden?
>
>It depends on what you mean by "included in an exe". FILETOSTR() can be used to load the file into a variable and be extracted from there. However, if you're talking about passing the file name of the included file to the function and expecting it to be extracted, I don't think so.
Bill Morris
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform