i had a large text file to include to a project (must be included inside the executable). The only way was to make a little code to read the file, export it as a pb file (with datasection, Data.s ...) and put it inside my project.
maybe that way will be better

Code: Select all
#file_open_inside = 0
Global NewList liste_txt.s()
Filename$ = CatchFile(?Txt_File,#PB_Ascii)
If ReadFile(#file_open_inside,Filename$)
While Eof(#file_open_inside) = 0
AddElement(list_txt())
list_txt() = ReadString(#file_open_inside)
Wend
Else
MessageRequester("Information","Impossible d'ouvrir le fichier!")
EndIf
End
DataSection
Txt_File: IncludeAscii "liste_file.txt"
EndDataSection
