Hi,
I'm creating a .txt file from iLogic, but in the end i creats a new line... And this is not allowed. i'm storing a file path and it cannot be used when it has a new line on the end using the read all command.
Is there a way to avoid the new line?
Is there a way to read only the first line?
Thanks
When you provide your iLogic code it's easier to help you. What line of code do you use to read the line?
Is it working for you if you use the ReadLine instead of the standard example of ReadToEnd?
Rob.
oRead = System.IO.File.OpenText(ThisDoc.PathAndFileName(False) & ".txt") EntireFile = oRead.ReadLine()
Yes, it is!
Thanks for the response.
Euhmmm one more question.
oRead.ReadLine()
Which line does it read? Can it also be used ie ReadLine number 3?
For now i have no need for it, but maybe one day i would expand my .txt file content and it could be usefull.
Can't find what you're looking for? Ask the community or share your knowledge.