Hi,
Im making a script to read an .htm file that is writen by a server.
It then picks up certain lines of "importance", which are then written to a different file (For ease i i have posted it here to go to a messagebox).

The problem is that instead of reading the lines and then storing them in a string its reading every single "character"/"letter".
By doing this it is impossible to get important sentences written by the server.

This is what the script looks like:
Code:
Open(1,$Location+"Full Backup_"+$BDate+$BMonth+".htm",2)  


   $readline = ReadLine(1)
?$readline

	$Count = val($Count) + 1

	WHILE @error = 0

      	$readline = ReadLine(1)
		?$readline
   		$Count = val($Count) + 1
		? $Count
		If $Count = 175 							; Count untill important line
			
			$Myarray = Split($readline, "<BR>")		;Spilt Line

			For Each $Element In $MyArray				;Check Line
				?$readline
   				? $Element 
				
				If $ElementCount = 3
					$JobStat = $Element			;Store Jobstatus
				EndIf
				$ElementCount = val($ElementCount) + 1
			Next
	
		EndIf
	LOOP

	Close(1)	

	Messagebox($JobStat,"Message Box Title",48,0)


Thanks in advance


Edited by Muesli (2006-12-20 02:37 PM)