I've got multiple Text Boxes and when I click a Button the TextBoxes.Text writes inside of a .txt file.
It works fine, exactly how I want it to look:
This is what I see when I open the .txt file (example, not actual values):
That's good, it's exactly how i want things to look.
Now for I can't figure out...
I want to, let's say, have:
Label4.Text = [1st line of the .txt file]
Label5.Text = [2nd line of the .txt file]
Label6.Text = [3rd line of the .txt file]
But things get screwy when i use:
It takes into account [Return] as 2 characters long and doesn't display things how I'd like to see them.
Each row will be 1,2,3 or 4 characters long, so using "InputStrin g(1, 4)" for taking the first 4 characters wont always be acurate.
Any chance there's a way to say:
Label4.Text = [Row1, Column1-4]
Label5.Text = [Row2, Column1-4]
Label6.Text = [Row3, Column1-4]
and if theres only 2 characters on the line, only display 2 characters?
It works fine, exactly how I want it to look:
Code:
FileOpen(1, "C:\Blah\Blah\Blah\Test01.txt", OpenMode.Output) PrintLine(1, TextBox1.Text) PrintLine(1, TextBox2.Text) PrintLine(1, TextBox3.Text) FileClose(1)
Code:
1234 567 89
Now for I can't figure out...
I want to, let's say, have:
Label4.Text = [1st line of the .txt file]
Label5.Text = [2nd line of the .txt file]
Label6.Text = [3rd line of the .txt file]
But things get screwy when i use:
Code:
FileOpen(1, "C:\Blah\Blah\Blah\Test01.txt", OpenMode.Input) Label4.Text = InputString(1, 4) Label5.Text = InputString(1, 3) Label5.Text = InputString(1, 2) FileClose(1)
Each row will be 1,2,3 or 4 characters long, so using "InputStrin g(1, 4)" for taking the first 4 characters wont always be acurate.
Any chance there's a way to say:
Label4.Text = [Row1, Column1-4]
Label5.Text = [Row2, Column1-4]
Label6.Text = [Row3, Column1-4]
and if theres only 2 characters on the line, only display 2 characters?
Comment