Hi.
I'm using FB6 and have had some problems with upgrading build scripts created with FB5. The problem occurs when I create som text files and fill them with text (in this case innosetup-scripts). Then concatenate the files into one.
If I do not add an extra return between the text files I concatenate, the text from the second file starts on the end of the last line of the first file, and not on the line under it.
There already is one return at the end of the first file, I can move the cursor down to below the last text.
I use Create Text File to create the textfiles (obviously...).
Regards,
Stein O. R.
Hi Stein,
I haven’t been able to reproduce this problem here, make sure you’re using the latest version of FinalBuilder 6 and if the problem still exists, send in an example project to support [at] finalbuilder.com so we can try and reproduce it here.
Regards,
Paul.
The script is fairly complex and depend on a build-structure that can't easily be moved.
These steps reproduce the issue:
1. Create a text file
2. Write to the created text file some lines of text
3. Create a second text file with some content
4. Concatenate the two files into a third
The resulting file shows that file 2 is put at the end of the last line of file one.
The problem might be with the write to text file.
Hi Stein,
We’re still not able to reproduce the problem, as long as there is a new line at the end of ‘File A’ then the contents of ‘File B’ will start on the new line.
Regards,
Paul.
Strange.
I can reproduce the behaviour every time. I use "Create Text File" - no contents in the file. Then I use "Write to Text File" four times. No newlines at the end of the writes. I get a file with four lines. Then "Create Text File" again with content this time.
When I concatenate the two text files, the last file starts at the end of the last line of the first file.
It seems like successive "Write to Text File" writes a newline then the new text, and leaves off without a newline.
I've mailed you the script that reproduces the issue as well.
Regards,
- Stein -