title: read from file into textbox corona
body: <p>I want to read from a file into text box , where user can add more data then it will go as sms</p>
  
  <p>how can I do that </p>
  
  <p>i try some ready code , but always not working</p>
  
  <pre><code>enter code here
  </code></pre>
  
  <h2>---------------------------------------------------------------------------------</h2>
  
  <h2>-- scence4-1.lua</h2>
  
  <hr>
  
  <pre><code> local storyboard = require( "storyboard" )
   local scene = storyboard.newScene()
   local widget = require( "widget" )
  
  ---------------------------------------------------------------------------------
  </code></pre>
  
  <h2>-- BEGINNING OF YOUR IMPLEMENTATION</h2>
  
  <pre><code>   local obj2 = display.newImage( "images/bg4-1.png")
  
     local btn1 = display.newImage( "images/btn_send.png",151,415 )
  </code></pre>
  
  <p>local btn2 = display.newImage( "images/btn_cancel.png",6,415 )
      btn1.id = "send object"</p>
  
  <hr>
  
  <p>local myname = GV_Name 
     local myid = GV_ID_NO</p>
  
  <pre><code>print (myname)
  print(myid)
  
  function scene:enterScene( event )
  local params = event.params
  
  print (params.GV_Name)
  print (params.GV_ID_NO)
  
  end
  
  
  
  
  
  local path = system.pathForFile( "data.txt",  system.DocumentsDirectory  )
  local fh_note = io.open( path, "r" )
  if fh_note then
      print (path)
      io.close( fh_note )
  end
  
          textBox = native.newTextBox(25, 95, 265, 305 )
  
      print(textBox.text)
  
      textBox:setReferencePoint(display.TopCenterReferencePoint)
      --textBox.x = screenCenter
      textBox.size = 16
      textBox.isEditable = true
  
  
  
      local my_text = textBox.text
  -- onRelease listener for 'sendSMS' button
  local function onSendSMS( event )
  -- compose an SMS message (doesn't support attachments)
  local options =
  {
     to = { "0505930118", "9876543210" },
     body = my_text
  }
  native.showPopup("sms", options)
  
  -- NOTE: options table (and all child properties) are optional
  end
  
  local function onbtn1Touch( event )
   if event.phase == "began" then
  print (my_text)
      print( "Touch event began on: " .. event.target.id )
          --onRelease = onSendSMS
  end
  return true
  end
  btn1:addEventListener( "touch", onSendSMS )``
  
  
  
  
  return scene
  enter code here
  </code></pre>