My users are uploading a TXT file and I am using the following code:
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile(strFilePath,1,False,-1)
Line = objFile.ReadLine
The problem is that some are uploading a Mac text file and some are uploading a PC text file. A Hex compare of the files indicates that the EOL is 0A in one and 0D in the other.
First off, what is the proper name for each the formats?
Secondly, how can determine which is which via Classic ASP?
I tried changing x to 0,-1,-2 in the following:
Set objFile = objFSO.OpenTextFile(strFilePath,1,False,x)
Ultimately, when I do a readline for the Mac formatted file, the Line contains the whole text file instead of just one line like when I use a PC formatted file.
Thanks in advance for your assistance!