Hey everyone,
I've written a program that analyzes a text file and splits this in some parts and adds some extra charachters, everything goes well except in the original file there are trademark icons used in the text witch come out completely wrong after converting the text file... Does anyone have a solution for this?
I read the textfile first and put it in a textarray:
Dim objReader As New StreamReader(FILE_NAME)
Dim MyFileText As New StringCollection
iLineCount = 1
iorderlijn = 0
Do While objReader.Peek <> -1
Line = objReader.ReadLine()
If Line.StartsWith("###") Then
orderpositie(iorderlijn) = iLineCount
iorderlijn += 1
End If
iLineCount += 1
MyFileText.Add(Line)
iFinal += 1
Loop
Then i write the lines (matching criteria) in other text files:
If afz_lijn > 2 Then
lijn = "P1;" + ((MyFileText.Item(linenumber -1)).ToString)
sw.WriteLine(lijn)
linenumber += 1
End If
afz_lijn += 1
So in the original file i have for example: Product® Specification™
and in the splitted files i get Product� Specification�
If anyone has a solution i'd appreciate it!
Tx!
Borrie
I've written a program that analyzes a text file and splits this in some parts and adds some extra charachters, everything goes well except in the original file there are trademark icons used in the text witch come out completely wrong after converting the text file... Does anyone have a solution for this?
I read the textfile first and put it in a textarray:
Dim objReader As New StreamReader(FILE_NAME)
Dim MyFileText As New StringCollection
iLineCount = 1
iorderlijn = 0
Do While objReader.Peek <> -1
Line = objReader.ReadLine()
If Line.StartsWith("###") Then
orderpositie(iorderlijn) = iLineCount
iorderlijn += 1
End If
iLineCount += 1
MyFileText.Add(Line)
iFinal += 1
Loop
Then i write the lines (matching criteria) in other text files:
If afz_lijn > 2 Then
lijn = "P1;" + ((MyFileText.Item(linenumber -1)).ToString)
sw.WriteLine(lijn)
linenumber += 1
End If
afz_lijn += 1
So in the original file i have for example: Product® Specification™
and in the splitted files i get Product� Specification�
If anyone has a solution i'd appreciate it!
Tx!
Borrie