Announcement

Collapse
No announcement yet.

[TextFile ]Looking for a little help please

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [TextFile ]Looking for a little help please

    Hello everyone,
    I'm a newbie. I'm very happy when i know forum.
    I use TextFile.ReadToString and get error.

    My code
    Code:
    tFiles = Dialog.FileBrowse(true, "Locate File", _DesktopFolder, "All Files (*.*)|*.*|Text Files (*.txt)|*.txt|", "", "dat", false, false); 
    if tFiles then
    	Input.SetText("Input3", tFiles[1]);
    end
    	link = Input.GetText("Input3");
    	link = String.Replace(link, "\\", "\\\\", false);
    	txt = TextFile.ReadToString(link);
    	Input.SetText("Input2", txt);
    I want know .
    1.How to remove it ?
    2.How to multiselect file from a folder ?
    I hope i will get your help.

  • #2
     before the first line.
    How to remove it ?
    i need help !

    Comment


    • #3
      It seems to be a UTF-8 coded file and AMS does not support it, but you can convert it by means of a plugin written by Ulrich. Just convert it on the fly, very nice stuff! Good luck!

      Comment


      • #4
        You can get it here: http://www.mindquake.com.br/en/actions/unicode

        Comment


        • #5
          Originally posted by Friethoe View Post
          It seems to be a UTF-8 coded file and AMS does not support it, but you can convert it by means of a plugin written by Ulrich. Just convert it on the fly, very nice stuff! Good luck!
          Thank you very much .

          Now,i want show all data from 2 text file to input:

          what do i do ?

          Comment


          • #6
            Well first of all you should enable the multiline option and resize the input-field to show more lines. Just set the text to the input-field and that would be it.

            Comment


            • #7
              Originally posted by Friethoe View Post
              Well first of all you should enable the multiline option and resize the input-field to show more lines. Just set the text to the input-field and that would be it.
              Thank,
              i has been enable the multiline option but unsuccessful :(
              Can you for me example ?

              Comment

              Working...
              X