Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Filetostr() ?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00883824
Message ID:
00884279
Views:
12
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
Previous
Reply
Map
View

Click here to load this message in the networking platform