Dynamic Text with external .txt files

I need help getting dynamic text to display. I've used the
following tutorials (among others).
http://www.kirupa.com/developer/mx/dynamic_scroller.htm
http://www.kirupa.com/developer/mx/multiple_dynamictext.htm
In Flash 8 on last frame of maintimeline of movie, I have a
layer with a background image, 2 buttons and a dynamic textbox
(made scrollable) with scrollbar component. Textbox is given a var
of "content", and an instance name of "textBox", which is
referenced in scrollbar parameters.
I have created 3 text .txt files, and saved them to same
folder with movie .swf file. Text in files is preceeded by
"content=" on line preceeding text to correspond with var of
dynamic textbox. The files were created in Rich text format on Mac
OSX4.11 and saved with .rtf extension, then file extension was
changed to .txt (wouldn't save as .txt)
I've added the following actionscript to this last frame:
loadText = new LoadVars();
loadText.load("TEXTintro.txt");
//creating the loadVarsText function
loadText.onLoad = function(success){
if (success){
textBox.text = this.content;
else{
trace("Error loading external content");
Buttons have an instance name assigned with the following
actionscript:
on (release) {
loadText = new LoadVars();
loadText.load("TEXT1.txt");
loadText.onLoad = function(success){
if (success){
textBox.text = this.content;
else{
trace("Error loading external content");
When I test movie, I can see buttons on last frame of movie,
but they don't load any text when pressed, and "undefined" text
appears in upper left corner of text box before I press either
button.
I am getting the following Output errors:
**Error** Scene=MoonOfWintertime, layer=TextBox,
frame=2500:Line 1: Statement block must be terminated by '}'
on (release) {
**Error** Scene=MoonOfWintertime, layer=TextBox,
frame=2500:Line 11: Syntax error.
**Error** Scene=MoonOfWintertime, layer=TextBox,
frame=2500:Line 1: Statement block must be terminated by '}'
on (release) {
**Error** Scene=MoonOfWintertime, layer=TextBox,
frame=2500:Line 11: Syntax error.
Total ActionScript Errors: 4 Reported Errors: 4

No more output errors, buttons still not working, but I got
my intro .txt file to load in textbox that loads with frame using
the following code I tried from another tutorial:
loadText = new LoadVars();
loadText.onLoad = function() {
textBox.html=true;
textBox.htmlText = this.textContent;
loadText.load("TEXTintro.txt");
Tried the following code with buttons, but doesn't work.
Other code suggestions?
on (release) {
loadText = new LoadVars();
loadText.onLoad = function() {
loadText.load("TEXT2.txt");
on (release) {
loadText = new LoadVars();
loadText.onLoad = function() {
textBox.html=true;
textBox.htmlText = this.textContent;
loadText.load("TEXT1.txt");
}

Similar Messages

  • How to read in text string pairs from an external txt file?

    I have an external txt file containing 26000 pairs of strings in the format
    string1a   string1b
    string2a   string2b
    string26000a string26000b
    all strings are always 4 characters in length.  For example,
    a123   jkdh
    b456   uusp
    How can use TestStand 2013 to input this data into local string array varaibles?  I also have legacy testers running TestStand 3.5, so I need a TestStand 3.5 solution as well.  Thanks in advance for any ideas.  Hopefully this can be done in TestStand without the use of LabView or LabWindows/CVI.

    Daniel E., thanks for the reply. 
         It is very frustrating to have to implement workarounds in order to access text in an external file when using TestStand.  TestStand already reads in text ini files, so it would probably take a TestStand software developer all of 1/2 day to write the code and 1/2 day to debug it.  Here I will restate the obvious.  Engineers have to deal with data, sometimes data generated from other applications.  Sharing data in a text file is one of the most basic functions (and one of the easiest to implement).  When I think of all the effort needed to support ActiveX, but NI did not see it fit to give TestStand users simple text file read/write functionality, it does not make sense to me.  Maybe it was too simple or mundane a task so it did not get developed?  Whatever the reason, I think users of TestStand deserve this basic functionality.
         Even if TestStand cannot read the data directly into array variables, it should provide some mechanism to read the text from the file, either line by line or all file text into a string, so the data could then be parsed into the array variables I need.
         I will pursue a CVI or LabView solution.  Please also know that I am not directing these comments at you, I do appreciate your reply.
    Regards,
    Ron

  • Loading text from a .txt file

    I want to do something that should be VERY simple, but due to
    Adobe's insistence on using #$%^ing tutorials instead of just
    providing step by step instructions, it's very frustrating to
    figure out how to do it.
    All I want to do is load the contents of a text file into a
    dynamic text field, but I can't figure out how to do it (I'm not
    all that familiar with AS). I'm working with Flash 8. Please help.
    Thanks.

    Create the dynamic text box, and name it schedule.
    Then, in the frame on the timeline that the text box resides
    in, the corresponding actionscript would be used to create a text
    variable and assign the text from a txt file to it:
    loadText = new LoadVars();
    loadText.load("externalfile.txt");
    loadText.onLoad = function() {
    schedule.text = this.textbody;
    Where does the "textbody" variable come from? In the external
    text file (externalfile.txt in this example), you have a variable
    called textbody, and the externalfile.txt should read along the
    lines of:
    textbody = "I'm the external text that needs to be read
    in"

  • Importing Text From A .txt File

    Hey guys,
    I'm looking for a way to import text from a .txt file but I'm totally lost. If someone could point me in the right direction that would be awesome

    Hi Prails
    This script is basically what you asked:
    #target illustrator
    #targetengine main
    function copyText(){
        var textFile = File.openDialog ("Select the file");
        if (! textFile.exists || app.documents.length==0){
            return;
        textFile.open("r");
        var txtContent = textFile.read();
        textFile.close();
        var doc = app.activeDocument;
        var textItem = doc.textFrames.add();
        textItem.contents = txtContent   
    copyText ();
    Basically what you need to do is declare the text file, open it, read the content and close it. Then, you create a new text item in the Illustrator document and write the content once catched into the text item.
    You could continue to work with the variable "textItem" in my example script if you want to set properties like the size, color of the text, position and so on. Also, if you want, replace the first line of the function var textFile = new File ("~/Desktop/Test.txt"); by var textFile = File.openDialog ("Select the file"); so the scripts opens a dialog to ask you the file you want the copy the content.
    Hope to be helped
    Best Regards
    Gustavo
    Message was edited by: Gustavo Del Vechio

  • Problem with printing txt file

    I have a problem with printing txt file. My code looks like :
    String filename = something.txt";
    DocFlavor flavor = DocFlavor.INPUT_STREAM.AUTOSENSE;
    PrintService[] services = PrintServiceLookup.lookupPrintServices(
              flavor, null);
    PrintRequestAttributeSet pras = new HashPrintRequestAttributeSet();
    pras.add(PrintQuality.DRAFT);
    pras.add(new Copies(1));
    pras.add(MediaSizeName.ISO_A4);
    pras.add(Sides.ONE_SIDED);
    pras.add(Chromaticity.MONOCHROME);
    PrintService service = ServiceUI.printDialog(null, 200, 200,
              services, services[0],
              null,
              pras);
    if (service != null)
    try
    DocPrintJob job = service.createPrintJob();
    FileInputStream fis = new FileInputStream(filename);
    DocAttributeSet das = new HashDocAttributeSet();
    Doc doc = new SimpleDoc(fis, flavor, das);
    job.print(doc, pras);
    Thread.sleep(10000);
    catch(FileNotFoundException e)
    catch(PrintException e1)
    catch(InterruptedException e2)
    It doesn't work :(
    What is my purpose: I would like to print .txt file but I would like to get PrintDialog where I can choose PrintQuality, Chromaticity etc. I found also that I should use DocFlavor.INPUT_STREAM.TEXT_PLAIN_HOST but I don't know how.
    I will be very gratefull for help :)

    I tested it on 3 printers (different models of hp). 2 of them don't give me any error but when it started print priter stoped (just as it dosesn't have a paper), but 1 of them doesn't react (there were no errors), i thought tahat something was wrong with printers but when I change DocFlavor.INPUT_STREAM.AUTOSENSE to DocFlavor.GIF and filename to dog.gif it works so mybe there is another way to print txt file

  • List component and external .txt file

    Hi,
    Is there a way to load item labels of a list component from
    an external .txt file?
    Thanks

    Thank you very much Marghoob. It worked!

  • Swf with external .as files not working in Captivate

    Hello,
    I am using Flash Professional CS5.5 & Captivate 5.5 (purchased with eLearning suite).
    When I insert swf animations into Captivate that have external .as files they do not work.
    Tried both insert animation & insert animation slide - same results.
    I placed the .as files in the same file as my Captivate project and have tried multiple setting options.
    The FPS are set to 30.
    I had the same problem with external audio files and had to embed the audio into my fla to get it to play in Captivate.
    Does Captivate just not allow external files?
    Any help/insight is appreciated!!
    Les-

    The most likely reason for this failure is that since your SWF is now embedded into another SWF (the Captivate project) the paths to the AS files need to be altered in Flash to allow for this.
    You need to investigate how this would be done in AS code if your Flash SWF was a symbol inside another Flash SWF.

  • AS3: outputting trace() content to external txt file

    the question's in the title. ive got a swf but i've gotta run
    it on a nokia n800, which means trace() content will be lost and -
    boy! - do i need it!
    so how can i set my swf up to output its trace content to an
    external txt file?

    hello kglad
    well, not 'lost' thats misleading, sorry. i mean: the swf
    will be running on a browser outside the flash authorising
    environment so the output window won't be accessible, therefore i
    need a way of printing out the trace() output to another source.
    the help files say that trace() can output to the output window OR
    to an external txt file. only it doesnt actually go on to say quite
    HOW you can output to said external txt file, rather
    irritatingly..

  • Calling a variable from a external txt file that is equal button name

    Hello
    I have a variable in an external txt file that is = the name
    of my button. I have loaded the file in to flash in an object
    called my_lv.
    How do I make line three in the code valid ?
    _root.map.name1900.onRollOver=function() {
    this._alpha=20;
    txName=my_lv.+(this._name); // this line is wrong!! I need
    to place name1990._name in side the ().

    do you have an object called "my_lv" and a child object have
    named as "name1900" . ie "my_lv.name1900"\
    if i am right then...
    >> txName=my_lv.+(this._name); //
    should be
    txName= eval("my_lv."+ this._name)

  • Problems in Frame 1 with External HTML files

    I am having an issue with loading two external html files within
    my website.
    I have a case study page with a
    dynamic textbox and a scrollbar attached to it.
    I have another page "news" that
    contains another dynamic textbox with a scrollbar attached to
    it.
    I created two .txt files with my
    information for both pages.
    Working in Flash CS3 with
    Actionscript 2.0 at 30fps.
    My problem is this:
    I can go to my news page and the .txt file will be visible,
    but once I go to the other case study page and reveal that .txt
    file, I go back to the news page and the .txt file is no longer
    visible. Only a nonworking scrollbar is displayed with no text and
    nothing else.
    I believe I need to do something different in Frame 1's
    Actioncode. I just don't know how to get the other .txt file to
    work along with the other. I will be adding more .txt files in
    dynamic textboxes later and I really need to resolve this issue so
    I am able to add them with no problems. Appreciate anyone's help
    immediately if you can.
    Here is the temporary website link so you can test and see my
    problem. Don't forget to go the the news button first in the
    navbar. Then go to the case studies link and find the MAX Cat
    Packaging and view that .txt file, then go back and you will see my
    problem.
    Click Here to
    Visit Site

    well I made a separate layer and placed the symbol with the
    text box and scrollbar attached. That was the only thing on the
    layer as you mentioned to separate it. I don't see how I could
    separate the scrollbar from it as it is needed. So I made some
    keframes, selected the textbox inside the symbol and added the code
    you told me to add:
    caseStudyMC._visible=false; In the other frames where I
    needed it visible I added the code:
    caseStudyMC._visible=true;
    When I tested the movie. I didn't see the text but I saw the
    scroll bar still and the text still failled to appear after viewing
    the MC Case study text.
    Is the code supposed to go in Frame1? What do I do with the
    scroll bar image? I tried to Make it all disappear using the alpha
    at 0, but it still didn't work.
    thanks for all your help. hope you understand what I
    wrote.

  • How to display Dynamic text after adding flash file to html

    Please help - I have a dynamic text field in a movieclip
    inside a main movieclip - Within flash the dynamic text display
    properly but once I load the file to an html page the dynamic text
    no longer display - It loads undefined in text box. However when I
    remove the movieclip from main movieclip text display no
    problem.

    that's as2 code, not as3. please post in the correct forum
    next time.
    either about.txt is not in the same directory as the html
    file that loads or embeds your swf or there's a case issue with
    about.txt really being About.txt, for example.

  • Importing fixed width text from a .txt file

    I am really struggling to do in Numbers '09 something which I can do easily in Excel.
    I have a txt file containing plain text in fixed-width columns which I would like to import into numbers.
    I just cannot find a way to do it.
    I have tried using the Insert/choose menu item - but it won't take .txt files.
    I have tried to copy/paste the data, but it get's pasted into a single column.
    The data consists of many lines like this:
    Part Value Device Package Library Sheet
    A-IN JST-2.0-4 JST-2.0-4 JST-20M KMILLAR 1
    A-IN JST-2.5-4 JST-2.5-4 JST-25M KMILLAR 1
    A-IN JST-2.8-4 JST-2.8-4 JST-28M KMILLAR 1
    (and so on....)
    (Each column is an exact number of characters wide, but these forums make that hard to see due to the variable spaced fonts).
    How can I import this data into numbers?
    (Sorry, but I cannot get the data in any other format, such as CSV, the application which exports it only support fixed width colums with spaces for padding).
    Many thanks in advance,
    Kenny

    Here is a script treating the case of fixed widths values.
    --[SCRIPT fixedwidth_values_toTSV.scpt]
    Enregistrer le script en tant que Script : fixedwidth_values_toTSV.scpt
    déplacer le fichier ainsi créé dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
    Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
    aller au menu Scripts , choisir Numbers puis choisir fixedwidth_values_toTSV
    Choisir un fichier texte.
    Le script détermine la largeur des différentes colonnes puis remplace les groupes séparateurs par des caractères TAB.
    Le résultat est passé dans le presse-paiers et est enregistré à la place du contenu initial.
    Vous pouvez alors
    (1) coller dans le document de votre choix
    (2) ouvrir le fichier texte modifié dans Numbers qui accepte sans broncher les ficiers .txt.
    Utilisation alternative : enregistrer le script en tant que Progiciel (Application sous 10.6.x)
    Glisser-déposer l'icône d'un fichier texte sur celle de l'application lancera le traitement voulu.
    --=====
    L'aide du Finder explique:
    L'Utilitaire AppleScript permet d'activer le Menu des scripts :
    Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case "Afficher le menu des scripts dans la barre de menus".
    Sous 10.6.x,
    aller dans le panneau "Général" du dialogue Préférences de l'Éditeur Applescript
    puis cocher la case "Afficher le menu des scripts dans la barre des menus".
    --=====
    Save the script as a Script: fixedwidth_values_toTSV.scpt
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
    go to the Scripts Menu, choose Numbers, then choose "fixedwidth_values_toTSV"
    Choose a text file.
    The script scan the file's contents to extract the width of every column then it replace the separator groups by TAB characters.
    The result is passed to the clipboard and is written in the original file.
    So you may :
    (1) paste in the document of your choice
    (2) open the modified text file with Numbers which is fair enough to do that.
    An alternate track is to save the script as an Application Package (Application under 10.6.x)
    Drag and drop the icon of a text file on the application's one will do the job.
    --=====
    The Finder's Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the "Show Script Menu in menu bar" checkbox.
    Under 10.6.x,
    go to the General panel of AppleScript Editor’s Preferences dialog box
    and check the “Show Script menu in menu bar” option.
    --=====
    Yvan KOENIG (VALLAURIS, France)
    2010/08/19
    --=====
    on run
    set un_fichier to choose file with prompt "Choose e text file…" of type {"public.plain-text"} without invisibles
    my commun(un_fichier)
    end run
    --=====
    on open (sel)
    set un_fichier to item 1 of sel
    tell application "System Events" to set type_ID to type identifier of disk item ("" & un_fichier)
    if type_ID is "public.plain-text" then my commun(un_fichier as alias)
    error "The file “" & un_fichier & "” isn’t a text file !"
    end open
    --=====
    on commun(le_fichier)
    set le_contenu to read le_fichier
    set le_contenu to "azer ertyuio wxcv dfghj
    qszaed dc fghj mlkjhgf nbvcxw
    aqwzsx edcrfv tg byhn aaaaaaa "
    set listedelistes to {}
    set plusgrandelongueur to 0
    set pluspetitelongueur to 999999
    set listelignesbrutes to paragraphs of le_contenu
    repeat with refd_uneligne in listelignesbrutes
    set maybe to contents of refd_uneligne
    set maybe2 to count of maybe
    if maybe2 > plusgrandelongueur then set plusgrandelongueur to maybe2
    if maybe2 < pluspetitelongueur then set pluspetitelongueur to maybe2
    copy my decoupe(maybe, space) to end of listedelistes
    end repeat
    set differencedelongueur to plusgrandelongueur - pluspetitelongueur
    set des_espaces to space
    repeat differencedelongueur times
    set des_espaces to des_espaces & space
    end repeat
    set largeur1 to 0
    repeat with refd_uneligne in listedelistes
    set maybe to length of first item of refd_uneligne
    if maybe > largeur1 then set largeur1 to maybe
    end repeat
    set liste_finale to {}
    repeat with refd_uneligne in listelignesbrutes
    set maybe to contents of refd_uneligne
    set maybe2 to text 1 thru largeur1 of maybe
    repeat while maybe2 ends with space
    set maybe2 to text 1 thru -2 of maybe2
    end repeat
    copy maybe2 to end of liste_finale
    copy text (largeur1 + 2) thru plusgrandelongueur of (maybe & des_espaces) to contents of refd_uneligne
    end repeat
    Enter the bigger loop *)
    set cest_Lafin to false
    repeat
    Deprieve the stored rows of the treated column's items *)
    set flag to 0
    repeat
    set flag to flag + 1
    set flag2 to 0
    repeat with refd_uneligne in listelignesbrutes
    if "" & character flag of contents of refd_uneligne is space then set flag2 to flag2 + 1
    end repeat
    if flag2 < (count of listelignesbrutes) then exit repeat
    end repeat
    repeat with refd_uneligne in listelignesbrutes
    copy text flag thru -1 of contents of refd_uneligne to contents of refd_uneligne
    end repeat
    Prepare the extraction of next column *)
    repeat with refd_uneligne in listelignesbrutes
    copy my decoupe(contents of refd_uneligne, space) to end of listedelistes
    end repeat
    Extract the width of the column to treat *)
    set largeur1 to 0
    repeat with refd_uneligne in listedelistes
    set maybe to length of first item of refd_uneligne
    if maybe > largeur1 then set largeur1 to maybe
    end repeat
    Extract the column's values *)
    repeat with i from 1 to count of listelignesbrutes
    set maybe to contents of item i of listelignesbrutes
    set maybe2 to text 1 thru largeur1 of maybe
    repeat while maybe2 ends with space
    set maybe2 to text 1 thru -2 of maybe2
    end repeat
    copy (contents of item i of liste_finale) & tab & maybe2 to item i of liste_finale
    try
    copy text (largeur1 + 2) thru -1 of maybe to item i of listelignesbrutes
    on error
    set cest_Lafin to true
    end try
    end repeat -- i
    if cest_Lafin then exit repeat
    end repeat -- bigger loop
    set le_contenu to my recolle(liste_finale, return)
    set the clipboard to le_contenu
    set eof of le_fichier to 0
    write le_contenu to le_fichier
    end commun
    --=====
    on decoupe(t, d)
    local oTIDs, l
    set oTIDs to AppleScript's text item delimiters
    set AppleScript's text item delimiters to d
    set l to text items of t
    set AppleScript's text item delimiters to oTIDs
    return l
    end decoupe
    --=====
    on recolle(l, d)
    local oTIDs, t
    set oTIDs to AppleScript's text item delimiters
    set AppleScript's text item delimiters to d
    set t to l as text
    set AppleScript's text item delimiters to oTIDs
    return t
    end recolle
    --=====
    --[/SCRIPT]
    Yvan KOENIG (VALLAURIS, France) vendredi 20 août 2010 12:44:33

  • Problems With Downloading TXT File

    I have a procedure that when called creates a .txt file, which is used as an upload to another application.
    If I run my procedure, the txt file is created, but when I look at the file, it contains the required records but also information about the page.
    See below.
    My code is
    create or replace PROCEDURE mer_fuel_coupon_download_1 IS
    CURSOR c_fuel_coupon IS
    SELECT A.VIN,
        A.FIRST_BFG,
        F.DRIVER_POSITION,
        A.BFG_NO,
        C.MAKES MAKE,
        D.MODEL,
        A.FRG_NO,
        E.COLOUR,
        A.MANUFACTURED_DATE MANUFACTURED,
        A.DEREG_ON,
        A.OTHER_VRN NON_BFG_REG_NO,
        B.VALID_FROM,
        B.VALID_UNTIL,
        'Not Held Anymore' UNREG_FROM,
        'Not Held Anymore' UNREG_TO,
        G.FUEL_TYPE,
        A.CC,
        A.FUEL_RATION,
        H.PERSONAL_NO,
        I.RANK,
        H.FIRST_NAME,
        H.SURNAME,
        'Not Held Anymore' HEAD_OF_FAMILY,
        J.UIN,
        TO_DATE(H.DATE_OF_BIRTH,'DD-MON-YY') DATE_OF_BIRTH,
        J.UNIT_NAME,
        K.BFPO,
       -- A.ITEM_ID
        ROWNUM
      FROM MER_IMPORTED_ITEMS A,
           MER_VEHICLE_OWNERSHIPS B,
           MER_MAKES C,
           MER_MODELS D,
           MER_COLOURS E,
           MER_DRIVER_POSITION F,
           MER_FUEL_TYPE G,
           MER_PERSONS H,
           MER_RANKS I,
           MER_UNITS J,
           MER_BFPO K
      WHERE H.PERSONAL_ID(+) = B.PERSONAL_ID
      AND B.ITEM_ID(+) = A.ITEM_ID
      AND C.MAKE_ID(+) = A.MAKE_ID
      AND D.MODEL_ID(+) = A.MODEL_ID
      AND E.COLOUR_ID(+) = A.COLOUR_ID
      AND F.DRIVER_POSITION_ID(+) = A.DRIVER_POSITION_ID
      AND G.FUEL_TYPE_ID(+) = A.FUEL_TYPE_ID
      AND I.RANK_ID(+) = H.RANK_ID
      AND J.UNIT_ID(+) = H.UNIT_ID
      AND K.BFPO_ID(+) = J.BFPO_ID
      AND A.BFG_NO IS NOT NULL
      AND (A.DEREG_ON IS NULL
      OR A.DEREG_ON    > (SYSDATE - 1826));
      line_of_data VARCHAR2(5000);
      dir_prob         EXCEPTION;
      file_write_done  EXCEPTION;
      record_ct        NUMBER(6) :=0;
      output_file      VARCHAR2(12) := 'FUEL.TXT';
      target_file      utl_file.File_Type;
      success_ct       NUMBER(6) :=0;
      fail_ct          NUMBER(6) :=0;
    BEGIN
    -- Set MIME type
    owa_util.mime_header( 'application/octet', FALSE );
    -- Set name fo file
    htp.p('Content-Disposition: attachment; filename="FUEL.TXT"');
    -- Close the HTTP header
    owa_util.http_header_close;
    BEGIN
    FOR r_fuel IN c_fuel_coupon
        LOOP
         BEGIN
    line_of_data := r_FUEL.VIN||','
    ||TO_CHAR(r_FUEL.FIRST_BFG,'DD/MON/YY')||','
    ||r_FUEL.DRIVER_POSITION||','
    ||r_FUEL.BFG_NO||','
    ||r_FUEL.MAKE||','
    ||r_FUEL.MODEL||','
    ||r_FUEL.FRG_NO||','
    ||r_FUEL.COLOUR||','
    ||TO_CHAR(r_FUEL.MANUFACTURED,'DD/MON/YY')||','
    ||TO_CHAR(r_FUEL.DEREG_ON,'DD/MON/YY')||','
    ||r_FUEL.NON_BFG_REG_NO||','
    ||TO_CHAR(r_FUEL.VALID_FROM,'DD/MON/YY')||','
    ||TO_CHAR(r_FUEL.VALID_UNTIL,'DD/MON/YY')||','
    ||r_FUEL.UNREG_FROM||','
    ||r_FUEL.UNREG_TO||','
    ||r_FUEL.FUEL_TYPE||','
    ||r_FUEL.CC||','
    ||r_FUEL.FUEL_RATION||','
    ||r_FUEL.PERSONAL_NO||','
    ||r_FUEL.RANK||','
    ||r_FUEL.FIRST_NAME||','
    ||r_FUEL.SURNAME||','
    ||r_FUEL.HEAD_OF_FAMILY||','
    ||r_FUEL.UIN||','
    ||TO_CHAR(r_FUEL.DATE_OF_BIRTH,'DD/MON/YY')||','
    ||r_FUEL.UNIT_NAME||','
    ||r_FUEL.BFPO||','
    --||r_FUEL.ITEM_ID||','
    ||r_FUEL.ROWNUM||','
    || CHR(13)||CHR(10);
    htp.prn(line_of_data);
    success_ct := success_ct + 1;
    EXCEPTION
    WHEN no_data_found THEN
              RAISE file_write_done;
            WHEN others THEN
              fail_ct := fail_ct + 1;
    END;
        END LOOP;
    END;
    END;At the end of the txt file, I see information like this
    <head>
    <title>Fuel Coupon Download</title>
    <link rel="stylesheet" href="/i/themes/theme_20/theme_3_1.css" type="text/css" />
    <link rel="stylesheet" href="/i/bfg_css/j6.css" type="text/css" />
    <script type="text/javascript" src="/i/bfg_javascript/jquery/jquery-1.3.2.js"></script>
    <link rel="stylesheet" href="/i/bfg_javascript/jquery/jqueryui/themes/redmond/jquery-ui-1.7.2.custom.css" type="text/css" />
    <script type="text/javascript" src="/i/bfg_javascript/jquery/jqueryui/jquery-ui-1.7.2.custom.js"></script>
    <script type="text/javascript" src="/i/bfg_javascript/j6_javascript.js"></script>
    <!--[if IE]><link rel="stylesheet" href="/i/themes/theme_20/ie.css" type="text/css" /><![endif]-->
    <style>
    * {font-size: 10pt;font-family: Tahoma,Arial,Helvetica,Geneva,sans-serif};
    </style>
    <script src="/i/javascript/apex_ns_3_1.js" type="text/javascript"></script>
    <script src="/i/javascript/apex_3_1.js" type="text/javascript"></script>
    <script src="/i/javascript/apex_get_3_1.js" type="text/javascript"></script>
    <script src="/i/javascript/apex_builder.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    /*Global JS Variables*/
    var htmldb_Img_Dir = "/i/";
    //-->
    </script>
    <link rel="stylesheet" href="/i/css/apex_3_1.css" type="text/css" />
    <!--[if IE]><link rel="stylesheet" href="/i/css/apex_ie_3_1.css" type="text/css" /><![endif]-->
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    </head>
    <body ><form action="wwv_flow.accept" method="post" name="wwv_flow" id="wwvFlowForm">
      <input type="hidden" name="p_flow_id" value="111" id="pFlowId" />  <input type="hidden" name="p_flow_step_id" value="388" id="pFlowStepId" />  <input type="hidden" name="p_instance" value="1780009464230900" id="pInstance" />  <input type="hidden" name="p_page_submission_id" value="18077377520018" id="pPageSubmissionId" />  <input type="hidden" name="p_request" value="" id="pRequest" /><div id="t20PageHeader">
    <table border="0" cellpadding="0" cellspacing="0" summary="">
    <tr>
    <td id="t20Logo" valign="top"><span style="font-family:Arial; color:#FFFFFF; font-size:18px; white-space:nowrap; font-weight:bold;">Vehicle Licensing Office Application</span><br /></td>
    <td id="t20HeaderMiddle"  valign="top" width="100%"><br /></td>
    <td id="t20NavBar" valign="top"><br /></td>
    </tr>
    </table>
    </div>
    <div id="t20BreadCrumbsLeft"></div>
    <table border="0" cellpadding="0" cellspacing="0" summary="" id="t20PageBody"  width="100%" height="70%">
    <td width="100%" valign="top" height="100%" id="t20ContentBody">
    <div id="t20Messages"></div>
    <div id="t20ContentMiddle"></div>
    </td>
    <td valign="top" width="200" id="t20ContentRight"><br /></td>
    </tr>
    </table><table border="0" cellpadding="0" cellspacing="0" summary="" id="t20PageFooter" width="100%">
    <tr>
    <td id="t20Left" valign="top"><span id="t20UserPrompt">ADMIN</span><br /></td>
    <td id="t20Center" valign="top"></td>
    <td id="t20Right" valign="top"><span id="t20Customize"></span><br /></td>
    </tr>
    </table>
    <br class="t20Break"/>
    <input type="hidden" name="p_md5_checksum" value=""  /></form>
    <script type="text/javascript">
    <!--
    //-->
    </script><!-- Code generated for user with developer privileges.  -->
    <script type="text/javascript">
    function popupInfo()
      w = open("f?p=4000:34:1780009464230900:PAGE:NO:34:F4000_P34_SESSION,F4000_P34_FLOW,F4000_P34_PAGE:1780009464230900,111,388","winLov","Scrollbars=1,resizable=1,width=700,height=450");
      if (w.opener == null)
         w.opener = self;
         w.focus();
    </script><table cellpadding="0" border="0" cellspacing="0" summary="Developer Toolbar" align="center"><tbody><tr><td><a class="htmldbToolbar" href="f?p=4500:1000:1780009464230900" style="border-left:1px solid black;" title="Application Express Home">Home</a></td><td><a class="htmldbToolbar" title="Application 111" href="f?p=4000:1:1780009464230900::NO:1,4150,RP:FB_FLOW_ID,FB_FLOW_PAGE_ID,F4000_P1_FLOW,F4000_P4150_GOTO_PAGE,F4000_P1_PAGE:111,388,111,388,388" style="border-left:1px solid #000000;border-right:1px solid #000000;">Application 111</a></td><td><a class="htmldbToolbar" title="Edit Page 388" href="f?p=4000:4150:1780009464230900::NO:1,4150:FB_FLOW_ID,FB_FLOW_PAGE_ID,F4000_P1_FLOW,F4000_P4150_GOTO_PAGE,F4000_P1_PAGE:111,388,111,388,388">Edit Page 388</a></td><td><a class="htmldbToolbar" href="f?p=4000:336:1780009464230900::::FB_FLOW_ID,FB_FLOW_PAGE_ID,F4000_P1_FLOW,F4000_P4150_GOTO_PAGE,F4000_P1_PAGE:111,388,111,388,388" style="border-left:1px solid black;" title="Create">Create</a></td><td><a class="htmldbToolbar" href="javascript:popupInfo()" style="border-left:1px solid black;" title="Session">Session</a></td><td><a class="htmldbToolbar" href="f?p=4000:14:1780009464230900::::FB_FLOW_ID,FB_FLOW_PAGE_ID,F4000_P1_FLOW,F4000_P4150_GOTO_PAGE,F4000_P1_PAGE:111,388,111,388,388" style="border-left:1px solid black;" title="Activity">Activity</a></td><td><a class="htmldbToolbar" title="Debug" style="border-left:1px solid black;" href="f?p=111:388:1780009464230900::YES">Debug</a></td><td id="hideEdit" style="display:none;"><a class="htmldbToolbar" title="Hide Edit Links" href="javascript:quickLinks('HIDE');"  style="border-right:1px solid #000000;border-left:1px solid black;">Hide Edit Links</a></td><td id="showEdit"><a class="htmldbToolbar" title="Show Edit Links" href="javascript:quickLinks('SHOW');"  style="border-right:1px solid #000000;border-left:1px solid #000000;">Show Edit Links</a></td></tr></tbody></table>
    <script type="text/javascript">
       if(GetCookie('ORA_WWV_QUICK_EDIT') != null){
           if(GetCookie('ORA_WWV_QUICK_EDIT') == 'SHOW')
               quickLinks('SHOW');
    </script>
    </body>
    </html>Can anyone tell me why it is tagging this information on to my txt file
    Cheers
    Gus

    Hi,
    before exception handler call
    apex_application.g_unrecoverable_error := true;Regards,
    Jari

  • What is wrong with my txt file or merge doc?

    I'm trying to merge data from a txt file.  It's for name badges.  I've got the document designed (8-1/2 x 11" Avery 5392, 6 badges per sheet) and connected successfully to my data source.  There are only 4 types of info in the txt file (agency name, state, name, title).  When I create the merge fields for each badge position and click preview, I only get the first record repeated into each of the 6 locations on the page.  What am I missing or doing wrong?  I'm using InDesign CS2.
    I've attached the txt file.
    I've also attempted this with a csv file with and got the same results.
    Thanks.

    I downloaded your sample files, and here is what I had to adjust:
    1, I made the master page a single page; not facing pages. I changed from inches to picas
    2. I made two layers: one for graphics and second for text, above the graphics layer
    3. I put the artwork ai file on the graphics  layer on the master page
    4. I deleted 5 of 6 duplicate text frames on page 1; leaving only the first upper left text frame
    5. I moved that lone textframe to the master page, in the same relative position
    6. Text in that text frame should have been controlled with paragraph styles, BTW, but that is a detail
    7. I returned to view page 1
    Then, going to the DataMerge panel, I turned on preview and also clicked the right-most button at the bottom of the panel to setup the merge.
    All records and Multiple Records per document page
    Then, onto the Multiple Record Layout tab:
    Top margin 16pica
    Bottom margin 3pica
    Left margin 2pica
    Right margin 2pica
    Spacing between columns 1p6
    Spacing between rows 11p6
    Check on Preview Multiple Record Layout
    OK to generate
    So, it turns out your txt file was OK as it was.
    Mike Witherell in Maryland

  • Text layers from .txt file for buisness cards

    I have a template for a business card that I created for a company. So  imagine I have a background layer which is the card itself, and above  that a layer for each string of text on the card (name, title, phone,  email). Up until now, I would manually enter all the information using  the Type tool to edit each text layer. However, it has become very  tedious and I know there has to be a much easier way to do this. I'm  looking for a way to automate this process.  So far I have created an Excel database of all the  employees, and I export each employees information to a .txt file that  looks like this:
    John Doe
    Job Title
    123-456-7890
    123-456-7890
    [email protected]
    Each line in the .txt file corresponds to a text layer on the .psd. I've  tried following a tutorial from the web (kirupa.com - Photoshop Scripting) but he is creating  them in batches which is not what I need to do. And quite frankly, it's  a bit over my head. I know scripting must be the way, but unfortunately  I don't know much about JaveScript or any  other language for that matter.
    I know it's a lot to ask for, but if anyone could show me how to write a  simple script for this or point me in the right direction, it would be  much appreciated. And I mean MUCH!

    Hey man, that was spot on! This does exactly what I was looking for, now scripting required. Thanks for the help, I really appreciate it.

Maybe you are looking for

  • Iphone 4 voice memo quits on opening

    Verizon iphone 4 6.1.3 Apple Voice Memo has started quitting less than 2 seconds after opening reverting to home screen. Has never happened before and will not stay open now. Re-synced with itunes, turned off and on a number of times now and no relie

  • System exception while deleting the file from app server in background job

    Hi All, I have a issue while the deleting the file from application server. I am using the statement DELETE DATASET in my program to delete the file from app server. I am able to delete the file from the app server when i run the program from app ser

  • Desktop Manager Sync Problem

    I have the latest desktop and device software.  I can sync the BB with the Calendar in Outlook, but only after I added another Mail Profile as advised elsewhere.  When I try and sync the Address book (with Outlook's Contacts), the Desktop Manager jus

  • How does a java app get rid of non-garbage ?

    Not sure if I should rather post to "New to Java", but it's related to JNI as well: I have a dynamic library, a corresponding Java singleton class and some other classes declaring native methods in that dll. "All" is fine for the moment, except that

  • 'iTunes could not run because it had detected a problem with your audio...

    ...configuration.' I have just updated to the newest iTunes version from the latest version. I have installed iTunes and when I click 'iTunes' to launch iTunes, it says this 'iTunes could not run because it had detected a problem with your audio conf