1 Attachment(s)
a cry for help, i need to put a ctrlf in a textfile after using the right function
in the text file there is a ctrlf on position 600.
I need the 550 positions of the right (with the ctrlf), i
used the right function because i don't need the first 50 characters of the left.
But, the right function gives a result without the ctrlf (control line feed) caracter.
How can i obtain that this character is set on position 600?
see attachement for text file
code:
Sub Main()
Open "C:\Program Files\Protime\ProTime Premium\magi2.txt" For Input As #1 ' Open bestand voor invoer
Open "C:\Program Files\Protime\ProTime Premium\magi3.txt" For Output As #2 'open bestand voor uitvoer
iRight = 550
Do While Not EOF(1) ' Controle op einde bestand
Line Input #1, sString
sRightString = Right(sString, iRight)
Debug.Print sRightString
Print #2, sRightString
Debug.Print sFinalString
Loop
Close #1
Close #2
End Sub