LOADFILE$ loads a file into a string variable.
Syntax:RetStr = LOADFILE$(Filename AS STRING) Return Value:
Parameters:
|
Be sure to size the string large enough to hold the file. Here is a simple way to do that.
DIM RetStr$ * LOF(FileName$)
DIM RetStr$ * LOF("MyData.Txt") RetStr$ = LOADFILE$("MyData.Txt") PRINT RetStr$
COMBOBOXLOADFILE loads a text file into a combobox control.
Syntax:COMBOBOXLOADFILE(hComboBox AS HWND, FileName AS STRING) Parameters:
|
EDITLOADFILE quickly and easily loads a text file into a BCX_EDIT control.
Syntax:EDITLOADFILE(hEdit AS HWND, FileName AS STRING) Parameters: |
LISTBOXLOADFILE loads a text file into a BCX_LISTBOX control.
Syntax:LISTBOXLOADFILE(hListBox AS HWND, _ Filename AS STRING _ [, FileAppend AS BOOL] _ [, HScrollAdj AS BOOL]) Parameters:
|