cparralesl
Programmer
Hi Guys,
I've searched thisone previously, without sucess.
My script reads each line from a plaint text file in order to get data and send it to MS-Excel later, but the format numbers contained in it has spaces as thounsands separator instead of a comma (instead 39,1109.90).
What I need to have is the entire number, without space (391109.90 ). The plain text has the "|" as delimiter.
Text plain ej:
| 9 088| 391 109.90| 8 005| 342 326.36|
Any help will be appreciated and thanks inadvance.
Cesar Humberto Parrales
Application Support
I've searched thisone previously, without sucess.
My script reads each line from a plaint text file in order to get data and send it to MS-Excel later, but the format numbers contained in it has spaces as thounsands separator instead of a comma (instead 39,1109.90).
What I need to have is the entire number, without space (391109.90 ). The plain text has the "|" as delimiter.
Text plain ej:
| 9 088| 391 109.90| 8 005| 342 326.36|
Code:
set oFO = CreateObject("SAFRCFileDlg.FileOpen")
oFO.OpenFileOpenDlg
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTextFile = objFSO.OpenTextFile(oFO.FileName)
Do While objTextFile.AtEndOfStream <> True
curStr = objTextFile.Readline
If inStr(CurStr, "|") Then
arrLine = split(CurStr, "|")
For K=0 To UBound(arrLine)
Wscript.Echo "Elemento " & K & ": " & Trim(arrLine(K))
Next
End If
Loop
Any help will be appreciated and thanks inadvance.
Cesar Humberto Parrales
Application Support