read line by line and insert to String Array.

 

I create a  symbols.txt  with Code.

this data save below formatted:

Ali

Hasan

...

when i read data on file text and copy to array. text is chicken scratch!

I use below code:what is wrong?

  int handle = FileOpen("List_Stoch.txt",FILE_READ|FILE_TXT);
   if(handle==INVALID_HANDLE) 
	return;
   while(!FileIsEnding(handle)) 
   Comment(FileReadString(handle));
   Print(FileReadString(handle));
   FileClose(handle); 
 
  int handle = FileOpen("List_Stoch.txt",FILE_READ|FILE_TXT|FILE_ANSI);
 
Alain Verleyen:

thanks a lot of.

God with you