sql server - How do I specify EOF in SSIS VBScript? -


What is the syntax to read in the SSIS VBScript to the end of the file? If readFile.Exists () then do the string as a reader in the form of a slow textstream = readFile.OpenText () short stroke while retarding the EOF (

  dim ReadFile as FileInfo = New FileInfo (logHourlyName) is not; --- Does it go here? Curline = textStream.ReadLine () Loop Text Stream. Close () End if  

Edit: I'm actually trying to get the value of the last line in the file. Therefore, reading to EOF is not the same as reading at the end of the file.

From

:

  slow ref file fileInfonie = new fileinfo (loghorlame) If readFile.Exists () then do the string as slow textstream = readFile.OpenText () in the form of a stream reader curlin = textStream.ReadLine () loop until the curline is not something textstream. Close () End if  

If you want the last line now:

  Dual Rephfile fileInfo = The final framework as new fileInfo (LogHorLineName) String if readFile exists () then again in the form of a stream reader Dim TextForm = Ref File. Open text () string in the form of a slow strokeline curline = textStream.ReadLine () If nothing increases then there is nothing until the lastline = curline loop until the curline is nothing text stream.Close () end if  

Comments