Please how can i read file, to find number of lines and to extract number of block data, and number of data in each block

please if you can give me an example

I attach a file wich i want read:
1- to know a number of lines in file
2- from the second line of the file to the line befor NCOUNT, put the lines in array like this, Variable and values like this Ex: TIMET 1 0 1 ..... first line
and put the values of NCOUNT in array
I attach a file
Attachments:
karim1.txt ‏2 KB
Read_Filenew.vi ‏29 KB

Similar Messages

  • How can I read my incoming emails in one folder?Like I do in Live mail and Outlook express.

    Now we can only read emails in different folders if I am managing multiple email accounts.
    It does not feel so comfortable as we use Live mail and Outlook express.

    '''Unified Inbox for pop and Imap mail accounts:'''
    If you use the Unified folder view, this will show an Inbox with all emails from all accounts, with sub folder Inboxes for the individual Inboxes for the various accounts. Then you can choose to view the collective Inbox or the individual Inbox.
    This method can be chosen simply and quickly.
    * View > folders > Unified
    '''Setting up Pop mail accounts to use Global Inbox.'''
    Pop mail accounts can be set up to use a Global Inbox in Local Folders.
    Imap mail accounts cannot be set up to use Global Inbox, but can use the Unified view.
    To change Pop mail accounts to use Global Inbox, you would need to move all emails into Local Folders Inbox.
    Then change the settings for each pop mail account.
    Tools > Account Settings > Server Settings for the pop mail account
    click on 'Advanced' button
    select 'Inbox for a different account' and 'Global Inbox (Local Folders)
    click on OK
    You need to do this for each Pop mail account.
    Then close Thunderbird. You must do this before downloading anything otherwise the emails may continue to go to the wrong Inbox.
    Wait a few moments for Thunderbird to fully close and then restart Thunderbird.
    Please read more info on global inbox here:
    * http://kb.mozillazine.org/Global_Inbox

  • How can I read file from filepath and Insert in to SQL Server ?

    Hi,
    I have table called "table1" and has data like this ..
    id
    Folder
    FileName
    1
       f:\cfs\O\
    ENDTINS5090.tif

    D:\Grant\
    CLMDOC.doc
    3
     f:\cfs\Team\
    CORRES_3526.msg
    4
      f:\cfs\S\
    OTH_001.PDF
    I have another table called "table2" with content column is image datatype.
    Id
    FileName
    Content
    1
    FileName
    2
    ENDTINS5090.tif
    3
    CLMDOC.doc
    4
    CORRES_3526.msg
    5
    OTH_001.PDF
    I would like to insert in to content column in the table2 by reading the file from filepath( table1).
    Is there any simple way or SSIS  able to do it ?
    Please help me on this.
    Thank you.

    http://dimantdatabasesolutions.blogspot.co.il/2009/05/how-to-uploadmodify-more-than-one-blob.html
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • How can i read Thai language in file .txt?

    AttN; Whom may concern.
    How can i read file txt in other language (Asian language such as Japanese, Thai, or Korea)?
    Please let me know urgent... I have to use it urgently...
    Best Regards,
    Sae
    Solved!
    Go to Solution.

    Hello Sae,
    Welcome to the Sony Community.
    What is the model number of the Reader Digital Book?
    The Reader supports the text file (.txt) formats as well as the following two formats:
    - EPUB file (.epub) EPUB (OPS version 2.0) supported
    - PDF file (.pdf) Support is based on the PDF 1.6 specification.
    The default language setting on your Reader Digital Book does not affect the language the book is in. To read books in a foreign language, you will have to purchase them specifically in that language.
    Thank you for your post.

  • How can we read some bytes from every line of the file

    How can we read some bytes from the every line of the file moving on to the next line
    without using the read line

    Actualiy readLine() takes more execution time
    for reading a part of line if we can do so without
    readLine() we can save some time...Well, if you knew, beforehand, the length of each line, you could use RandomAccessFile and its seek method, but, since you don't, you would have to read the rest of the line character-by-character, checking to see if it is a newline, in order to place the "cursor" at the beginning of the next line in order to read the next few characters you want.
    So, as you can see, you will need to read the entire line anyway (and if you do it yourself you also have to do the checking yourself considering all three possible end-of-line sequences), so you just as well use readLine().
    Some people may suggest Scanner and it's nextLine() method, but that also needs to read the rest of line (as evidenced by the fact that it returns it), so that is no different than the readLine() (or read it yourself) solution.

  • When I do Google search for images from my website nothing newer than September 2012 shows up.  How can I get Google to find new images?

    When I do Google search for images from my website nothing newer than September 2012 shows up.  How can I get Google to find new images?

    Have you uploaded a sitemap.xml recently and checked your webmasters account to see when your site was last crawled?
    http://www.iwebformusicians.com/Search-Engine-Optimization/SEO.html

  • How can I read a file directly please?

    Hello everyone,
    How can I read a file directly from a script please? I tried the insert into ... values but it does not work. I really have to read the file instead of entering the data via the interface. Does Oracle have a copy command? Each file line is split with tabs for each field in the line.
    Finally how can I subdivide the strings in each field?
    Thank you very much indeed and sorry for the basic questions.
    André Luiz

    SQL> create or replace directory data_dir as '/tmp';or
    SQL> create or replace directory data_dir as 'c:\temp';Where /tmp or c:\temp are directories or folders on the server.
    A full example of importing a tab delimited file is here.
    Re: Using DML order to import a .xls file

  • How can I read the bootstrap files and extract the fragment-URLs and fragment-numbers in plain text?

    How can I read the bootstrap files of any HDS Live stream and extract the fragment-URLs and fragment-numbers in plain text?
    Could it be that it is some kind of compressed format in the bootstrap? Can I uncompress it wirh  f4fpackager.exe? Could not find any download for f4fpackager.exe. I would prefere less code to do so. Is there something in Java of JavaScript, that can extract the fragment-numbers?
    Thank you!

    Doesn't sound too hard to me. Your class User (the convention says to capitalize class names) will have an ArrayList or Vector in it to represent the queue, and a method to store a Packet object into the List. An array or ArrayList or Vector will hold the 10 user objects. You will find the right user object from packet.user_id and call the method.
    Please try to write some code yourself. You won't learn anything from having someone else write it for you. Look at sample code using ArrayList and Vector, there's plenty out there. Post in the forum again if your code turns out not to behave.

  • How can I read text files from LAN if I only know the hostname?

    I'm new in Java Developing, and dont know the written classes yet. I need help, how to do the following steps?
    <p>1. How can I read text files from LAN if I only know the hostname, or IP address?
    <p>2. How to read lines from text files without read all lines from the beginning of file, just seek to a position.
    (ex. how can I read the 120th line?)
    <p>Please help!
    <p>sorry for the bad english

    I'm new in Java Developing, and dont know the written classes yet. I need help, how to do the following steps?
    1. How can I read text files from LAN if I only know the hostname, or IP address?You need to know the URL of the file. You need to know the hostname, port, protocl and relative path.
    The hostname is server, not file.
    2. How to read lines from text files without read all lines from the beginning of file, just seek to a position.Use the seek() to get to a random byte.
    (ex. how can I read the 120th line?)The only way to find the 120th line is to read the first 120 lines. You can use other file formats to find the 120th line without reading the whole file but to need to be able to detremine where the 120th line is

  • I can't login, keep geting "Your  Startup Disk is Full" and asking me to delete file. if I cant login how can I delete files? Please help

    I Keep getting "your startup disk is full" ..... "You need to make more space available on your startup disk by deleting file..."  If I can't have an acess, how can I delete files. Please help..

    That means the hard drive of your computer is full, and you don't have enough free space on your computer, to do what you are trying to do. 
    You need to clear up space on your computer. 
    If you hard drive is full, check the following places to ensure they are not holding unwanted data.
    - your trash can in the dock
    - if you use iPhoto, your trash in iPhoto - launch iPhoto, and select trash in the left hand column.  iPhoto has it's own trash, and is often overlooked
    - your download folder - finder / home user / downloads - every time you download something, it stores it here. This is often overlooked as well
    - do you have more than one user on the computer?  If you do, ensure they are needed.  If not, delete them, and the contents of their home folders
    If you hard drive is very full, you may want to consider the following:
    - putting in a newer larger hard drive - (call you local apple store for prices on this)
    - deleting data off your computer
    - moving data to an external drive - (iPhoto Libraries, iTunes Libraries or iMovie events, as they are the biggest space hogs)

  • Where can I find the Start up disk and how can I delete file from it.

    where can I find the Start up disk on theMac Book Air?
    How can I delete files from it?

    The startup disk is the internal SSD in your MBA.  You may delete files by draging the file  to Trash (or clicking on them and then execute COMMAND+Delete).  Then empty Trash.
    Ciao.

  • How can I transfer files from one external HD (WD My Passport) to another external HD (Seagate Backup Plus)?  WD drive was improperly ejected and Finder no longer recognizes it.  Tried fixing with Disk Utility but failed.

    How can I transfer files from one external HD (WD My Passport 2T) to another external HD (Seagate Backup Plus 2T)?  WD drive was improperly ejected (although we did tell it to eject) and now Finder no longer recognizes it.   Using MacBook Pro and I just upgraded to Yosemite before this happened. Was told at Apple Store to use Disk Utility to repartition, but it failed.  It says to backup files and restore.  But how do I backup files?  Or would appreciate any other suggestions to repair drive.

    You may drag & drop between external hds. 
    Should you run into trouble.
    Take the exernal drive appart.  Take out the harddrive.  Try reading the data via a usb adapter. Put a household finan on the hd.
    http://www.cablewholesale.com/products/usb-firewire/usb-2.0-products/product-40u   2-01000.php?utm_source=Nextag&utm_medium=cpc&zmam=54972865&zmas=1&zmac=4&zmap=4 4 77

  • How can one  read a Excel File and Upload into Table using Pl/SQL Code.

    How can one read a Excel File and Upload into Table using Pl/SQL Code.
    1. Excel File is on My PC.
    2. And I want to write a Stored Procedure or Package to do that.
    3. DataBase is on Other Server. Client-Server Environment.
    4. I am Using Toad or PlSql developer tool.

    If you would like to create a package/procedure in order to solve this problem consider using the UTL_FILE in built package, here are a few steps to get you going:
    1. Get your DBA to create directory object in oracle using the following command:
    create directory TEST_DIR as ‘directory_path’;
    Note: This directory is on the server.
    2. Grant read,write on directory directory_object_name to username;
    You can find out the directory_object_name value from dba_directories view if you are using the system user account.
    3. Logon as the user as mentioned above.
    Sample code read plain text file code, you can modify this code to suit your need (i.e. read a csv file)
    function getData(p_filename in varchar2,
    p_filepath in varchar2
    ) RETURN VARCHAR2 is
    input_file utl_file.file_type;
    --declare a buffer to read text data
    input_buffer varchar2(4000);
    begin
    --using the UTL_FILE in built package
    input_file := utl_file.fopen(p_filepath, p_filename, 'R');
    utl_file.get_line(input_file, input_buffer);
    --debug
    --dbms_output.put_line(input_buffer);
    utl_file.fclose(input_file);
    --return data
    return input_buffer;
    end;
    Hope this helps.

  • Thanks.. can u please help me out in one more question. how can i transfer files like pdf, .docx and ppt from my laptop to iPhone 5 ? please its urgent.

    thanks.. can u please help me out in one more question. how can i transfer files like pdf, .docx and ppt from my laptop to iPhone 5 ? please its urgent.

    See your other post
    First, i want to know how can i pair my iPhone 5 with my lenovo laptop?

  • How can i open file from adobe reader..i already have adobe read

    how can i open file from adobe reader..i already have adobe reader installed and cannot open a
    file and i cannot convert my file into pdf..

    Is the file really a PDF? Where is it? Have you tried opening it from within Reader?

Maybe you are looking for

  • How do I get dashboard widgets on the desktop again?

    I used to have the stock ticker widget on my desktop all the time, but after I upgraded it disappeared. I used to be able to go into dashboard, clock and hold on a widget, then exit dashboard, and the widget would move to my desktop. Where/why has th

  • Export system or sys schema

    If I am using imp/exp export schema system and sys, is it possible?

  • Oracle Timing

    Hi, Do you know how to record the process time for each query? especially spatial query in Oracle? Any system functions? Thank you so much! Xiong

  • Can't download purchased music from iTunes from an authorized Mac

    I went from a PC to a MacBook Pro in September. When I try to play a particular album, it's got that exclamation point after all the songs on it. After doing a lot of research, I think this happened when I was still using my PC. So what I moved to my

  • Error with "Replace wtih After Effects Comp"

    When I use "Replace with After Effects Comp" on a clip in Premier CS5 (Mac), it sends the clip properly, I make my effect in AE (stabilize motion), save, then go back to premier and there is not change to the clip in premier (the change was clear and