"Best" way handling txt file?

BlitzMax Forums/BlitzMax Beginners Area/"Best" way handling txt file?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi!

I wanted to know what ways you use to load a plain text file. And how to ouput the contens on screen.

Currently I'm getting the file as sting handle which i place in a global array. The problem is, that I dont know how to output the text with word warp afterwards?

Global MyArray$[MAXFOLGEN]

Function GetDetails( File$ )
	Local hFile
	Local temp:String
	
	hFile=OpenFile(File$)
	If hFile
		Temp=LoadString(hFile)
		CloseFile hFile
		MyArray[Current_Folge]=Temp 'put data string in array
	
		Temp=Null
		Release hFile			
		Return True
	EndIf
		
	Return False
End Function


Any suggs?