Dynamically creating DataGrid imported .txt file

I have a tab delimited .txt file exported from Excel which looks like this:

Sector Section the family Brand Image Description price quantity Code

Sector 1 Section 1 Description of the Fiat 10000 1 10000 10000 8 25.00 family

Sector 1 Section 1 1 10001 Kawasaky 10001 Description 10001 10 45.00 family

Sector 1 Section 1 10002 1 Ford 10002 Description 10002 15 10,00 family

Sector 1 Section 1 2 10003 Fiat 10003 Description 10003 100 8.00 family

In this case, I have nine columns, but the method should work with any number of columns.

The code is developed in Flash Builder, but it's especially AS3.

I dynamically create a DataGrid from these values. It's my first attempt:

<? XML version = "1.0" encoding = "utf-8"? >

" < = xmlns:fx s:Application ' http://ns.Adobe.com/MXML/2009 "

xmlns:s = "library://ns.adobe.com/flex/spark".

xmlns:MX = "library://ns.adobe.com/flex/mx".

creationComplete = "creationCompleteHandler (event)" >

< fx:Script >

<! [CDATA]

import flash.net.URLLoader;

import flash.net.URLRequest;

Import mx.collections.ArrayCollection;

Import mx.controls.DataGrid;

Import mx.controls.dataGridClasses.DataGridColumn;

Import mx.events.FlexEvent;

private var loader: URLLoader = new URLLoader();

private var request: URLRequest = new URLRequest("txtData/products.txt");

protected function creationCompleteHandler(event:FlexEvent):void {}

loader.addEventListener (Event.COMPLETE, loader_complete);

Loader.Load (request);

}

protected function loader_complete(evt:Event):void {}

Create array of lines in .txt file loaded

var lines: Array = evt.target.data.split(/\n/);

var dg:DataGrid = new DataGrid();

var columns: Array = [];

var dataProvider:ArrayCollection = new ArrayCollection();

for (var i: Number = 0; i < lines.length; i ++) {}

String: var line = lines [i];

Create array of column values of each row

var lineArray:Array = line.split(/\t/);

for (var j: Number = 0; j < lineArray.length; j ++) {}

var prop: String = lineArray [j];

{if(i==0)}

If the first row of the table, create column and assign the value of prop to dataField

var c:DataGridColumn = new DataGridColumn (prop);

c.dataField = prop;

Columns.push (c);

}

else {}

create the new object and add it to the dataProvider

var dataObject:Object = {area: lineArray [0], Section: lineArray [1], family: lineArray [2], Code: lineArray [3], mark: lineArray [4], Image: lineArray [5], Description: lineArray [6], quantity: lineArray [7], price: lineArray [8]};

dataProvider.addItem (dataObject);

}

}

}

assign columns to the dataGrid control

CGI Columns = columns;

assign the dataProvider of the dataGrid

dg.dataProvider = dataProvider;

Add the DataGrid on stage

this.addElement (dg);

}

[]] >

< / fx:Script >

< / s:Application >

I was able to create columns and dataFields dynamically, instead, I wasn't able to do it for the data provider items (see below):

var dataObject:Object = {area: lineArray [0], Section: lineArray [1], family: lineArray [2], Code: lineArray [3], mark: lineArray [4], Image: lineArray [5], Description: lineArray [6], quantity: lineArray [7], price: lineArray [8]};

How can I create these values dynamically (without knowing the names number and column data area)?

Thanks in advance

use:

If (i == 0) {}

for (var j: int = 0; j

var prop: String = lineArray [j];

var c:DataGridColumn = new DataGridColumn (prop);

c.dataField = prop;

Columns.push (c);

}

} else {}

var dataObject:Object = {};

for (j = 0; j<>

dataObject [columns [j] .dataField] = lineArray [j];

}

dataProvider.addItem (dataObject);

}

Tags: Adobe Animate

Similar Questions

  • Create a simple txt file of extendscript.

    Run.txt file not created in drive c.?

    var myFile = new File("/C/run.txt");

    var content = "ABCDEF";

    myFile.write (content);

    Maybe

    var myFile=new File("C:\\run.txt");
    

    ?

    Also, make sure that the preference of the AE "Allow scripts to write files and access network" is enabled.

  • Dynamically create/edit a .as file

    Hello.

    I was wondering if it is possible to use the information in an XML file to dynamically set properties and methods on a .as file. Let's say I have a MyClass.as:

    class MyClass {}
    Properties and methods for MyClass
    }

    Then I have a MyXML.xml:

    <? XML version = "1.0" encoding = "ISO-8859-1? >

    Properties of <>
    < public >
    < public_1 > public_property_1 < / public_1 >
    < public_2 > public_property_2 < / public_2 >
    ...
    < public_n > public_property_n < / public_n >
    < / public >
    < private >
    < private_1 > private_property_1 < / private_1 >
    < private_2 > private_property_2 < / private_2 >
    ...
    < private_n > private_property_n < / private_n >
    < / private >
    < / properties >

    I want MyClass to define its public and private property, using the data on MyXML.xml, is this possible? If so, can you at least give me some advice as to what is happening? Thank you.

    Don't think that you can dynamically generate a class where you instantiate objects. You can create dynamic classes that the class must be made to publish time and you can change the properties of the objects made of him at run - time is the perfect example of a MovieClip.

  • I am looking for a SIMPLE way to add my robots.txt file

    I read up on this subject. But I wasn't able to do it again.

    I found this:

    1. re: file robots.txt for sites of the Muse

    Vinayak_GuptaEmployee Hosts

    You can follow the guidelines of Google to create a robots.txt file and place it in the root of your remote site.

    https://support.Google.com/webmasters/answer/156449?hl=en

    Thank you

    Vinayak

    ----------------

    Once you create a robots.txt like this:

    user-agent: ia_archive

    Disallow: /.

    (1) where do you put 'head labels? Do you need them?

    I would insert it in muse that looks like this

    < head >

    user-agent: ia_archive

    Disallow: /.

    < / head >

    or just put it anywhere inside the 'head' tag

    (2) put the robots.txt file in a folder?

    I've heard this, but it just doesn't seem right.

    (3) OK you have the

    -Properties Page

    -Metadata

    -HTML < head >

    Can I copy and paste my right robot.txt info in there? I don't think I can and make it work. According to the info I found (that I posted above), the robots.txt 'file' you 'place at the root of your remote site.

    (4) where is the 'root of my remote sit?

    How can I find that?

    I read other people having problems with this.

    I thank very you much for any help.

    Tim

    I need Terry White to make a video on it LOL

    Maybe I'll ask.

    I thought about it.

    However, with the help of Godaddy, the file was not placed between theand, so I'm still a little nervous.

    It is recommended to:

    ///////////////////////////////////

    1.  re: file robots.txt for sites of the Muse

      

       Vinayak_Gupta   , April 19, 2014 01:54 (in response to chuckstefen)

    You can follow the guidelines of Google to create a robots.txt file and place it in the root of your remote site.

    https://support.Google.com/webmasters/answer/156449?hl=en

    Thank you

    Vinayak

    /////////////////////////////////////

    Place the robots.txt file to the root "of your remote site.

    and that (Godaddy) is not between the

    I checked the robot file that I created here

    New syntax Robots.txt Checker: a validator for robots.txt files

    and other than me not to capitalize

    the 'u' in the user-agent, it seems to work. When my site is analyzed, she does not miss a robots.txt file

    user-agent: ia_archive

    Disallow: /.

    Problem solved, unless I find an easy way to place the robots.txt file placed between the head tags (and better).

    I'll keep my ears open, but don't worry too much on this subject.

    Step 1) write the code of robots that you want to

    Step 2) save the file as a txt

    Step 3) contact your Web hosting provider / upload in the root of the Web site in a single file

    Step 4) check with a robot's checker that I listed above

    What was shake me:

    -where to put

    -the difference between files and folders, it seemed I would be to load a file for some reason any.

    -I was expecting something like the list of the news LOL

  • Import data from txt file with the reading of the names of columns

    Hello

    After changing the export of my simulation program, I can't use the postet heresolution, that works well. (I mark the message as hailed this is why I run a post only)

    Can anybode if you please tell me how to fan the code to import the new txt file type. The names of the columns here are FOA online first columns, like this (with ignoring the first lines).

    Hello Gabriel

    You can use the use wizard (Navigator > file > use wizard) to define a new filter to import file for your data. It will take only a minute.

    Please find the uri of the file that I create for you. Copy the attached file in your disk, unzip it and double-click the file uri.

    Then you can open your file by using 'open with '.

    Hope this helps

  • How to import a TXT file in my list of firewall rules?

    Good then I exported a list of firewall rules in a txt file. I then copied on some firewall rules. Then I saved the file txt and I wonder how I can re - import the txt file. Please note that I don't know of import policy...

    UH I thank you for responding, but apparently you misunderstood what I meant... When I go into windows firewall, there is an option to export the list of rules I want to know is how to re - import this list of rules in because there is no other choice... If so how do I do?

    Since I couldn't find a solution that I found something different that also works. I found a .bat file that you can put in the folder in which you want to block the program and it crashes all the exe files in this folder and all subfolders. You can even choose a fix before custom firewall rule... If any other person having this problem follow the instructions, I provide below:

    Instructions (found online modified by me)

    Create a .bat file, named "addfwrs.bat" without the quotes using italic text, then follow the additional instructions:

    off @echo
    REM FILE OF ORDERS CREATED BY CHARLES DE HAVILLAND 20/02/2012
    CLS
    If '%1 'is' ' GOTO: norulename
    RULENAME SET = %1
    ECHO creating/starting of firewall rules for all files with the rulename of 'RULENAME '? % *.exe
    ECHO.
    ECHO.

    pause
    Echo.
    FOR /r %% in ("*.exe") Do (@echo %%d KB
    ("NETSH advfirewall firewall add rule name =" "% RULENAME-% ~ nxG" dir = program = "% G" action = 'block' enable = 'yes')
    FOR /r %% in ("*.exe") Do (@echo %%d KB
    ("NETSH advfirewall firewall add rule name =" "% RULENAME-% ~ nxG" dir = program = "% G" action = 'block' enable = 'yes')
    Echo.
    ECHO done.
    Echo.
    GOTO: finish
    : norulename
    Echo error! -You have not specified a type Rulename - Addfwrs 'Rulename '.
    Echo.
    : Finishing
    ECHO batch finished...

    Additional instructions:

    Firewall Windows 7 works fine, but it's not easy to set up with several (very long) programs.
     
    I watched for centuries, trying to find a way to block several files .exe to Windows 7 only once; It seems that the only method was to create my own batch (windows script) file.
    I've added below for anyone to use / modify for their own purposes.
     
     
    Run the commands below (addfwrs.bat) file, will create inbound AND outbound firewall rules that block all .exe files in your chosen folder and subfolders to access internet.
    Very useful.
     
    To use:

    (1) place addfwrs.bat in the folder in which you want to block .exe programs (it crashes all the programs exe in no matter what subfolders if you can place it in a folder without any exe it blocks)
    exe in several subfolders both programs)

    (2) now run CMD as administrator.

    (3) copy the new directory (eg. c:\Programs Files (x 86) \YourProg\) where you put the addfwrs.bat file

    (4) paste it into the directory with "cd" CMD and a space before the directory (example: cd c:\Programs Files (x 86) \YourProg\) and press ENTER.

    (5) now run the batch file by typing: addfwrs.bat "rulename" example: addfwrs "BLOCK_PROGRAM_NAME_HERE".
    (Make sure there is no space in the rulename of the firewall rule, so use underscores as spaces.)

    N.B: It is important that you add a rulename firewall, so that you can identify the rules when adding to the firewall at a later date.

    (6) follow the information on the screen, he will advise you what rules he is creating.

    (7) check the Windows Firewall for new rules listed and you can then delete the addfwrs.bat file where you put it (it is necessary even if you can keep it somewhere for later).

    Quite.  Hope you find it useful, I certainly have!
    Enjoy!

    N.B: The new rules contained in the bosom of your firewall (In/Out rules), change as and when you need.

  • Import 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 would be great

    Hi Prails
    This script is basically what you asked:

    #target illustrator

    main #targetengine

    function copyText() {}

    text var file is File.openDialog ('select 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 to declare the text file, open, read and close it. Then, you create a new text element in the Illustrator document and write content once caught in the text element.

    You can continue to work with the variable 'textItem' in my example script if you want to set properties such as size, text color, position and so on. Also, if you wish, replace the first line of the function var textFile = new file ("" ~ / Desktop/Test.txt ' "); textFile var = File.openDialog ("select the file"); so the script opens a dialog box asks you the file you want to copy the content.

    Hope to be helped

    Best regards

    Gustavo

    Post edited by: Gustavo Del steep

  • Add a dynamically created checkbox in DataGrid

    Rquirement: Add a dynamically created checkbox in the first column of a dynamically created a DataGrid .
    Note: The dataprovider of the DataGrid is a collectible arraycollection, which is populated by tables in the database. Therefore, whenever the DataGrid columns can varry depents on the table.

    The code below would work for you. Please give it a try.

    Import mx.controls.dataGridClasses.DataGridColumn;
    Import mx.collections.ArrayCollection;
               
    Import mx.controls.DataGrid;
    Import mx.controls.CheckBox;
               
    [Bindable]
    private var dtGrid:DataGrid;
    [Bindable]
    private var chkBox:CheckBox;
               
    [Bindable]
    private var peeps: ArrayCollection collection;
               
                
               
    private function init (): void
    {
    friends = new ArrayCollection();
    peeps.addItem ({firstName: "Beautiful", lastName: "Dude", age: 24 gender: "male"});
    peeps.addItem ({firstName: "Red", lastName: "Dude", age: 25 gender: "male"});
    peeps.addItem ({firstName: "Top", lastName: "Guy" of the age: 25 gender: "male"});
    peeps.addItem ({firstName: "Cute", lastName: "Girl", age: 24, sex: "female"});
    peeps.addItem ({firstName: lastName "to"hot,":"Chick", age: 24, sex:"female"});
    peeps.addItem ({firstName: lastName "Lazy",: "The man", age: 25 gender: "male"});
                      
    var dataGridColumn:DataGridColumn = new DataGridColumn("");
    dataGridColumn.itemRenderer = new ClassFactory (CheckBox);
              
    dtGrid = new DataGrid();
    dtGrid.dataProvider = friends;
    this.addElement (dtGrid);
                      
    var tempColArray:Array = new Array();
    tempColArray [0] = dataGridColumn;
    for (var i: int = 0; dtGrid.columns.length > i; ++ i)
    {
    tempColArray [i + 1] = dtGrid.columns [i];
    }
                      
    dtGrid.columns = tempColArray;
    dtGrid.invalidateDisplayList ();
    }
    ]]>

  • Mac Mail will not create a file to import when importing .mbox files

    I've recently moved from an old Mac Pro (2008) a new (end of 2013). Both are running El Capitan (OSX 10.11.2) and the latest version of the mail (9.2). My old machine was old enough, so I skipped using Migration Assistant and performed a clean installation.

    I'm a graphic designer and, in the past, I always saved my emails into folders for each customer. When I finished work, I export it as a .mbox and check it in case I need to reference it later. If I need it later, I use "file > import mailboxes," select "import data since: Apple Mail," find the archived .mbox file and select it. " Mail lets know me that he has created a 'Import' folder, and there are my files.

    When I migrated to my new Mac Pro, I exported all my open work files, copied to a drive can be removed and added to the new machine. When I use the method "file > Import Mailboxes" I have just detailed, the import dialog box reads: "You can find boxes imported into the folder named 'Import' in the list of mailboxes mailbox." However, no 'Import' folder is created.

    I tried to leave Mail and reopening so to restart my Mac. I also tried to use "import data from: files in mbox.» In this case, I get a message that says: "error. No valid mbox file was found. »

    Here's the kicker: I created a new folder of email on my new Mac Pro, email at random from being dumped and exported it. When I re-imported, Mail created a new 'Import' folder, just as it is supposed to. It seems that the problem only affects files that I brought over my old camera.

    Any ideas I can try? I can still access my old Mac Pro if necessary.

    Please launch the Console application in one of the following ways:

    ☞ Enter the first letters of his name in a Spotlight search. Select from the results (it should be at the top).

    ☞ In the Finder, select go utilities ▹ of menu bar or press the combination of keys shift-command-U. The application is in the folder that opens.

    ☞ Open LaunchPad and start typing the name.

    The title of the Console window should be all Messages. If it isn't, select

    SYSTEM LOG QUERIES ▹ all Messages

    in the list of logs on the left. If you don't see this list, select

    List of newspapers seen ▹ display

    in the menu at the top of the screen bar.

    Click on the clear view icon in the toolbar. Then take an action that does not work the way you expect. Select all of the lines that appear in the Console window. Copy to the Clipboard by pressing Control-C key combination. Paste into a reply to this message by pressing command + V.

    The journal contains a large amount of information, almost everything that is not relevant to solve a particular problem. When you post a journal excerpt, be selective. A few dozen lines are almost always more than enough.

    Please don't dump blindly thousands of lines in the journal in this discussion.

    Please do not post screenshots of log messages - text poster.

    Some private information, such as your name or e-mail address, can appear in the log. Anonymize before posting.

    When you post the journal excerpt, an error message may appear on the web page: "you include content in your post that is not allowed", or "the message contains invalid characters." It's a bug in the forum software. Thanks for posting the text on Pastebin, then post here a link to the page you created.

    If you have an account on Pastebin, please do not select private in exposure menu to paste on the page, because no one else that you will be able to see it.

  • How to create dynamic Services based on VMware files

    Hello

    We would like to create as many services as VMware folders in VMware, so whenever we will be add/remove any computer file VMware virtual of the service components will also be day/follow-up...

    We check the option "Create a rule to include a group of components" in the function Builder, and adding the conditions of rule as:

    ! VFolder where name like ''.

    But the result is not successful, because we are unable to choose the right component that inherites the VFolder type components...

    The same works of query in the "Script Console" and the children of the property spreads with all virtual machines...

    Any ideas?

    Thank you.

    Hi Eneko

    One of our systems Consultants found a carton of community that creates dynamic records VMWare-based services. I have attached the cartridge and I included some comments from the author, Thomas Bryant.

    I am pleased to announce the release of version 1.0 of a cartridge personalized for VMware files.  I had a lot of customers ask me to automatically build services in vFoglight based on the structure of folders in vCenter, and that is exactly what will make this cartridge!  This cartridge contains a rule that runs once per hour and will create a category called files VMware services and then for each vCenter, the data center and the series of records, create services and add virtual machines to each, as in vCenter.  Simply load the cartridge and wait about 30 to 60 seconds depending on the number of files you have, and then services will be created.  Please let me know if things work, good or bad.

     

    Updated - Version 1.0.1 released

    The update fixes a problem with the sort order of the structure "Virtual Machines and templates" vs "Hosts and Clusters" and the following files which were not created properly.

     

    Known issues - currently will not remove a service based on a folder that has been deleted from vCenter.  I'll look to add this in the next version.

    One last thing. After you install the cartridge, a new rule, named Custom - create/update records VMware will be added under VMware_Folders cartridge. If edit you it and look at the Conditions & Actions tab, you should be able to see the groovy script that is used to create and populate the services. Here, you should be able to edit the prefix added to each folder in Foglight. By default, the prefix is "Folder_.

    I hope that this solution is satisfactory for you,

    Kind regards

    Gaston.

  • Can BlackBerry 10 I create new simple text (TXT) file on 10 BB?

    Hello - I am using simple *. TXT files in the DropBox folder to create notes and sync with the computer in Linux (via DropBox).

    I can't find any method to create a new file to plain text (on sd card, dropbox,... file system folder). I can create document in the Docs To Go, but the document is saved as.doc (document ms).

    Edit and resave existing plain text (*.txt) files are pretty simple 'Docs To Go"(no problem).

    A tip?

    I don't see a way to do it. But I searched the text editor in BlackBerry World and got a lot of possibilities. Some look pretty good.

  • create and write input by the user in a txt file

    Hey all

    Below, I added a piece of code... I would like to take the data and store it in a txt file as soon as the user clicks on the button field, I tried several times to get this figured out and google it fot too long now. could someone be so kind to help me please?

    Thank you

    btnRegister = new ButtonField ("Register", ButtonField.CONSUME_CLICK);

    customListener = new FieldChangeListener() {}
    ' Public Sub fieldChanged (field field, int context) {}
    Dialog.Alert ("you will receive an email as soon as your account has been activated!");
    }
    };
    Add (btnRegister);
    btnRegister.setChangeListener (customListener);
    }
    store users entry in a txt file, if no txt file, then create one.
    {} public void createFile()
    System.out.println ("registry"); Screen prints
    String data = Username.getText ();
    String Data1 = enterPIN.getText ();
    data from Byte [] = "Registration".getBytes ();
    try {}
    FileConnection fconn is (FileConnection) Connector.open (NewRegFileName, Connector.READ_WRITE);.
    If (fconn.exists ()) {}
    fconn. Delete();
    fconn. Create();
    System.out.println ("created txtfile");
    OutputStream os = fconn.openOutputStream ();
    System.out.println ("write data");
    OS. Write (Data);
    OS. Close();
    fconn. Close();
    }
    }
    catch (IOException e) {}
    System.out.println ("NewRegFileName" + (Data));
    }

    System.exit(); Quit the application after registration
    }
    Screen.onClose ();
    / * public boolean onClose() {//Exit application after registration
    System.Exit (0);
    Returns true;
    }*/
    Screen.Close (); Quit the application after registration
    }

    When you call createFile()?

  • Not possible to export a list of virtual machines that are created in the past 7, 30, 120 and 180 days since an imported csv file containing the date of creation of virtual machine

    Not possible to export a list of virtual machines that are created in the past 7, 30, 120 and 180 days since an imported csv file containing the date of creation of virtual machine. My questions is the correct statement to the variable: $VmCreated7DaysAgo: $_CreatedOn "-lt" $CDate7.

    # #SCRIPT_START

    $file = "C:\Users\Admin\Documents\WindowsPowerShell\08-18-2014\VM-Repo.csv".

    $Import = import-csv $file

    $VMCreatedLast7RDayRepoFile = "C:\Users\Admin\Documents\WindowsPowerShell\08-18-2014\Last7Days.csv".

    $start7 = (get-Date). AddMonths(-1)

    $CDate7 = $start7. ToString('MM/dd/yyyy')

    $VmCreated7DaysAgo = $Import | Select-object - property name, Powerstate, vCenter, VMHost, Cluster, file, Application, CreatedBy, CreatedOn, NumCpu, MemoryGB | Where-Object {$_.} CreatedOn - lt $CDate7} | Sort-Object CreatedOn

    $TotalVmCreated7DaysAgo = $VmCreated7DaysAgo.count

    $VmCreated7DaysAgo | Export-Csv-path $VMCreatedLast7RDayRepoFile - NoTypeInformation - UseCulture

    Write-Host "$TotalVmCreated7DaysAgo VMs created in 7 days" - BackgroundColor Magenta

    Invoke-Item $VMCreatedLast7RDayRepoFile

    # #SCRIPT_END

    You can use the New-Timespan cmdlet in the Where clause, it returns the time difference between 2 DateTime objects.

    An example of this cmdley

    New-TimeSpan-start (Get-Date). AddDays(-7)-end (Get-Date). Select days - ExpandProperty

    In your case, you could do

    Where {(New Timespan-démarrer ([DateTime] $_.))} CreatedOn) - end $start7). {7 days - gt}

    But beware of negative numbers.

  • create a txt file

    Hello


    I want to send 30 recordings with slider & for loop & UTL_FILE in txt file with 9. I can write all records in a single file.

    30 records == > 1-9 record 1 file

    10-18 2nd files

    18-27 3rd files

    27-30 4th records


    Is this possible?

    Here is an example. In the code below, the code highlighted in red will be your actual query that retrieves the data. He ROW_NO, FILE_NO and MAX_RNO are the values that I generated to create a separate file for each 9 entries.

    SQL > declare
    l_file 2 utl_file.file_type;
    3. start
    4 for i in)
    5 Select mod row_no (rownum-1: 9)
    6, ceil(rownum/9) file_no
    7, max (mod (rownum-1: 9)) on (ceil(rownum/9) partition) max_rno
    8, object_name
    object 9
    10 where rownum<=>
    11 order of 2, 1
    12             )
    loop 13
    14 if i.row_no = 0 then
    15 l_file: = utl_file.fopen
    16                   (
    17 "KARDIR.
    18                    , 'file_' || i.file_no | '_' || TO_CHAR (sysdate, 'ddmmyyyyhh24miss'). ".dat".
    19                    , 'a'
    20                   );
    21 end if;
    22
    23 utl_file.put_line (l_file, i.object_name);
    24
    25 if i.row_no = i.max_rno then
    26 utl_file.fclose (l_file);
    27 end if;
    28 end of loop;
    29 end;
    30.

    PL/SQL procedure successfully completed.

    % ls - lrt file_ knani * _ * .dat | AWK '{print $9} ' | XARGS wc-l
    9 file_1_08072013091853.dat
    9 file_2_08072013091853.dat
    9 file_3_08072013091853.dat
    3 file_4_08072013091853.dat
    total of 30

    knani %

  • Import a TXT file in the user dictionary

    Hi Forum,

    This is the script I m using import file txt in the "user dictionary", but the result is "undefined".

    Could someone help me how to import a Txt file in the user dictionary.

    var myUserDictionaries = app.userDictionaries;

    var myCountDict = myUserDictionaries.count ();

    myDoc var = app.activeDocument;

    myAddedWords = File("//Users/wleastudio/Desktop/AVIVA_dictionary.txt");

    for (var i = myCountDict-1; i > = 0; i--) {}

    myUserDictionary = myUserDictionaries [i];

    var myAddedWords = myUserDictionary.addedWords;

    myUserDictionary.addWord [myAddedWords];

    }

    Thank you

    Hello

    Try this example for the US English:

    var myUserDict = app.userDictionaries[21];//Should be English USA
    var txtFile = File('~/Desktop/test.txt');
    txtFile.open('r');
    wordsArray = txtFile.read().replace(/["'.,:;!?()\/\d\[\]]+/g, ' ').split(/\s+/);//cleaning the text to get only "words" mostly adapted by jongware
    txtFile.close();
    
        myUserDict.addWord(wordsArray)
    

    So long

Maybe you are looking for

  • Time Machine - How he manipulates iMovie library?

    Looking at turning on Time Machine with an iMovie 2 TB file.   Two questions: 1 Time Machine will perform incremental (after a full backup) in the library at the file level, if a project/event is added or changed to iMovie?   Or consider the iMovie l

  • HP Pavilion 17-e049nb windows 7 pro 32-bit sp1 upgrade to W8

    HelloI got my laptop for w7 w8 form, but I discovered that it is impossible to find compatible W7 and drivers working.http://h30434.www3.HP.com/T5/notebook-operating-systems-and-software/HP-Pavilion-17-e049nb-drivers-f...How can I restore and configu

  • ENVY 700-515xt: RAID 1 support WANT 700-515xt Office

    Envy my new 700-515xt (product # K7X03AV), MSI Kaili2 motherboard, Chipset Intel Z97/Z87, operating system Windows 7 RAID 1 support and if so what should I do to set it up.

  • USB disabling on PXI controllers

    It has been suggested that USB should be disabled in the BIOS to reduce jitter in a RT application running on a PC (such as PXI controllers). My question is: on a system (such as the PXI-8108) has not a PS/2 connector, disable the USB will prevent no

  • Cannot get wireless driver to work on dv4-1160eo

    Hello I formatted the hard drive of the laptop new and everything works great except for the wireless network. It shows as unknown device manager and tried all the different drivers on the driver page. Very grateful for the help!