Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

WriteLine() to a specific line


1 reply to this topic

tlukareski

tlukareski
  • Members
  • 4 posts

Posted 22 August 2001 - 22:50

Does anyone know of a way to get WriteLine() to write somewhere else other than the end of a file?  

Using FileInsertLine() & FileDeleteLine() are not options because I may have  a string in the .ini file that is >1024k.

Thanks-
Thomas


Ide Nentjes

Ide Nentjes
  • Members
  • 222 posts

Posted 11 September 2001 - 12:40

Hi Thomas,

I don't think that's possible. When you open a file in IS, the pointer is always at the end of the file, meaning that WriteLine will always just append to the file.
If you really need to insert a line somewhere in the middle of the file, you might try reading a file into an (existing) list with ListReadFromFile, adjust the list, and write with ListWriteToFile.

HTH, Ide