I'm trying to Ignore a file header when reading a file, but no succes?? Take a look.... please...

I posted the question in another forum,
Take a look at my VI,
What is wrong
I'm trying to ignore the Header sekvens, (the first line) when reading the data to a chart.
but ts noyt working,, did i missed something!?
Zamzam
HFZ
Attachments:
ReadDataFile11.vi ‏87 KB

Hi again HFZ,
The "read file" function has an option called "line mode" which is False by default, if you link a TRUE instead, you will only read one line of your file, you can then play with the offset in a while loop to read lines until the end of the file.
But it might be even easier to read the whole file (with line mode False) then do a "spreadsheet string to array" (look in arra palette) and then remove the first line.
I'm sorry I don't have time to have a look/modify your VI... On top of that you'll get much more satisfaction if you get through that yourself
have fun !
When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

Similar Messages

  • Issues with file locking when reading a file using RollingFile Appender

    Hi,
    I am facing a file Rotation Issue with log4j. I want a way to read one file from two diff apps.
    Intro: App A is writing a file F using log4j rolling file appender and app B is reading the same file F using “new BufferedReader(new InputStreamReader(new FileInputStream(_file)))”.
    Issue: App A is not able to roll the file. Because it is having a handle on the same file F.
    Please let me know how can I handle this issue.

    If you have the file open for reading when log4j tries to rename it, the rename will fail. Solution: don't have the file open for reading.
    I want to read the feed of such rolling logs without closing any handle.I gave you a solution to that too.
    If I am closing the handle after every read then there will be no way to determine where I left.Nobody suggested that.
    Is there any possible solution for this?What part of the solution I have already posted didn't you understand?

  • Hi I installed a new hard drive in my Mac mini osx lion an when I turn it on I get a flashing file with a question mark. I tried holding command and R keys when turning it on but the recovery fails to work. Does any one know how I can get it to recover?

    Hi I installed a new hard drive in my Mac mini osx lion an when I turn it on I get a flashing file with a question mark. I tried holding command and R keys when turning it on but the recovery fails to work. I can hold the option key at start up and choose my network, then Internet recovery shows up with an arrow pointing up. When I click on the arrow Internet recovery fails and all I get is a globe with a triangle on it with an exclamation mark on it, and under that it says
    apple.com/support
          -6002F
    Does any one know how I can fix this without a recovery disc? Thanks

    I just want to add to this, in case someone else searches for this error on Apple Support (google doesnt cover apple support.. how clever is that?)
    I had the same error. And i had a Computer that had worked, with a SSD drive and 16GB upgrade done by the owner himself.
    I tried swapping with a Mechinal Harddrive, no luck.
    Kept the Mechanical drive in, and tried with some other Ram, it worked..
    So for me this error and after reading the other responses can be boiled down to a Harddrive problem or Ram issue.
    It was Ram for me..

  • Lightroom 4.4 keeps crashing saying "Lightroom encountered an error when reading from its preview cache and needs to quit" please help. I've tried reinstalling it and everything  Windows 8.1

    Lightroom 4.4 keeps crashing saying "Lightroom encountered an error when reading from its preview cache and needs to quit" please help. I've tried reinstalling it and everything  Windows 8.1

    I assume you know where your catalogue file (the lrcat file) is located. In the same folder is a previews lrdata folder which you should delete or rename in Explorer, then start LR again.
    If I've made incorrect assumptions above, sorry, and we'll go back over it from the start.
    John

  • Jar files required to read excel file in SAP PI 7.3.1 sp09 dualstack

    Hi experts,
    I need to read excel file (.xls) using SAP PI and process it to target system. I have read blogs
    and found that there are 2 ways to read an excel file in PI using file adapter.
    1) Developing a custom adapter module
    2) Using XSLT code.
    So in order to develop a custom adapter module, i have followed the following blogs
    **************** - XI - Step-by-step guide to develop Adapter Module to read Excel file
    and
    Excel Files - How to handle them in SAP XI/PI (The Alternatives)
    and
    http://wiki.scn.sap.com/wiki/display/ABAP/Adapter+Module+To+Read+Excel+File+with+Multiple+Rows+and+Multiple+Columns
    I am unable to find the jar files in SAP PI at OS level as per the first blog(think they were obsolete).
    Please let me know
    1) What are the required jar files needed to read excel file and their location
    2) Even if i use the old jar files as mentioned in the first blog can i achieve my requirement
    3) Following this blog Convert incoming XML to Excel or Excel XML – Part 1 - XSLT Way if i apply the same logic at sender side, will it work? Because through case studies i came to know that we cannot read a .xls file using XSLT code. Correct me if i am wrong.
    Looking for your valuable suggestions.
    Regards
    Shilpa

    Hi Shilpa
    Welcome to SCN!
    The blog you refered to might be for previous versions of PI. You can refer to the following two wikis to find out what are the relevant JAR files for PI 7.3 and also how to get them.
    XI libraries for development - Process Integration - SCN Wiki
    Where to get the libraries for XI development - Process Integration - SCN Wiki
    It also looks like for newer versions, you might not need to manually get and add those JAR files into your NWDS project - please refer to the first comment on the blog below. I have not tried it personally as I'm not using the latest NWDS, but you can try that first, and if it does not work, then go get them manually.
    PI 7.4 - Adapter Module Creation using EJB 3.0
    Do note that you should be using the JAR files that is corresponding to your PI server version.
    As for your third question, that does not apply to you. XLS is the older non-XML format, and therefore cannot be read by XLST since it is in binary format.
    Rgds
    Eng Swee

  • File Adapter-Problem Reading Huge Files

    Hi,
    Here is the issue that i am facing
    When reading huge file(csv file upto 6MB-8MB) the communication channel configured as File Adapter with a polling interval of 7 min(420 sec) is inconsistent in reading the complete file.Sometimes it reads the the complete file of 6 MB and sometimes it reads a part of the file say 3MB/6MB.Can this inconsistent behaviour be resolved.??
    Your suggestions highly appreciated.
    Regards
    Pradeep

    Hi Pradeep !
    8mb is not a huge file for XI, I think it is a small one. Maybe your problem is not the size..please check if XI is not starting to read the file before it is completely written to the source folder. If you are creating that csv file from another application directly to the poll source directory of the XI scenario specified in the file adapter, and your poll interval is small, XI could start reading the file while you are still writing it. If this is the case, try to put the file with a different extension or filename than the specified in file adapter comm channel and when the file is completely written, rename it to its final filename and check if you are still having that misbehavior.
    You can write the file to a temp directory and the move it to the XI directory once finished.
    Regards,
    Matias.

  • Before, when reading PDF files, I was able to copy and paste part of the book. Now it is not possible. I can copy but when pasting gets nothing.  Antes, quando lia arquivos PDF, eu conseguia copiar e colar parte do livro. Agora isso não é possível.

    Before, when reading PDF files, I was able to copy and paste part of the book. Now it is not possible. I can copy but when pasting gets nothing.
    Antes, quando lia arquivos PDF, eu conseguia copiar e colar parte do livro. Agora isso não é possível. Eu consigo copiar, mas quando vou colar o texto, não cola nada.

    Caro Fabiano,
    Obrigado por ter contactado as Comunidades de Suporte Apple.
    Na origem do seu problema podem estar várias causas. Nomeadamente:
    O ficheiro (arquivo) que está a ler pode não ser texto, ou seja, pode ser texto transformado em imagem e exportado como PDF.
    A aplicação de destino (onde está a tentar colar o texto copiado) pode não aceitar a colagem de texto formatado.
    A aplicação que está a utilizar para abrir os ficheiros PDF pode não ser indicada para certo tipo de documentos. Experimente o iBooks, o Dropbox ou até mesmo o seu e-mail.
    No caso de nenhuma destas causas estar na origem do seu problema, forneça, por favor, mais informações sobre a origem do ficheiro (descarga pelo Safari, Mail ou outro) bem como o destino (documento Pages, Keynote ou Numbers ou outra aplicação que não o iWork).
    Atentamente,
    Gonçalo Matos
    Estou aqui para ajudar. Clique no botão "Reply" no caso de ter outra questão ou necessitar de outro esclarecimento para que eu possa ajudar da melhor forma que conseguir.

  • I do not have Microsoft office and to know if I can still open docx files - error message reads corrupt files.  Is there a reliable converter out there?

    I do not have Microsoft office and want to know if I can still open docx files - error message reads corrupt files.  Is there a reliable converter out there?  I am a new mac user.

    Install the free LibreOffice and save a bundle not having to pay MS. http://www.libreoffice.org/

  • Problems when reading pdf files

    I use windows 7, and also have available Adobe Reader 5 and Adobe Reader X, but i receive some problems when reading pdf files. What can I do???

    Reader 5 is not Windows Compatible. Two different versions of the same computer can cause all sorts of problems. Remove all Acrobat and/or Reader software then re-install Reader X.

  • Ignoring last 2 lines while reading the file

    Hi All,
    I have a file structure as mentioned below :
    ab
    ab
    ab
    ab
    =======
    =
    While reading a file , i need to ignore the last 2 lines . How to achieve this using FCC parameters.
    Regards
    Vinay P.

    Hi,
    I am not aware of any parameters in FCC to ignore last lines but work around can be :
    You may create one structure to read last 2 lines if depending on file structure and ignore it in mapping (map all records except this structure).
    Regards,
    Beena.

  • Ipod too slow when reading video files via DVD player with USB port.

    Hi all, this is my first message in this forum.
    I've got a DVD player that has a USB port and reads all types of disks. When I use my IPOD 80 GB the files I read are somehow frozen and don't run properly (lack of sync between audio and video, etc). I've got version 1.2.1 and use it in disk mode otherwise the player doesn’t see it. Meanwhile a friend of mine uses it's 60 Gb IPO on the same player, version 1.0 and it doesn't need to go to disk mode, and the player reads perfect from it. Is this a problem of the ipod software version?
    Both ipods are in Fat32 format, but in his ipod the partition is set to active. I can't change mine to that, because windows is seeing my IPOD as a removable device, and my friend’s IPOD as a disk.
    Hope I haven't been too confusing, and I welcome any help anyone can give.
    Thanks.

    Sorry, but I don't even know
    what it is you are trying to do. Are you attaching
    the iPod to a stand alone DVD player? Are you trying
    to export stuff out of the iPod into the DVD player?
    Patrick
    Hi, I'm attaching the iPod to a stand alone DVD player, that has a usb input port. And then read video files from it.

  • Not Using Index on File Server When Accessing User Files Directly on Server

    It appears to me that on a server with an indexed network share (Desktop Experience and Search Indexing roles/features installed), if you access the share directly on the server using its drive path, you can search the folders using the index, which
    is much faster and supports finding words inside of the files in seconds). However, if you access the same shared folder via its network path from the server itself, the server ignores the index. I have this experience/problem across all shared folders on
    the Windows 2012 R2 Server. Details and my most specific goal follows.
    In addition to a laptop, I frequently work directly on a Windows Server 2012 R2 computer. We have Redirected Folders set up on DFS (for failover redundancy) so that my Documents folder is in:
    \\network\redirections\user\documents. This all works fine on Windows 7 and 8 client computers connected to the network via Offline Files.
    The problem is on the server itself. The server has Desktop Experience enabled and Windows Search is installed. If I navigate manually through the DFS root folder to my documents folder, I can search and it properly uses the index. This proves the location
    is properly indexed. However, if I access the folders through the official "Documents" folder from the Folder Redirection (a network share pointing to the same server computer I'm working on), it performs an un-indexed search (slow and ignores file
    contents, but does find files eventually if the search term is in their filename). Is there a way to force the server to use the indexed search on the Redirected Folders (my Documents folder in particular) when working on that server when logged in locally
    on that server?
    I suspect a workaround would be to go into the Registry and manually change the HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders to point to the local DFS folder instead of the network share name, but at least one problem
    with this is then if I save files with links to other files (e.g., a linked Excel table in a PowerPoint, a mail merge to Access database in Word, etc.) on the server computer, those links will point to d:\DFSroot\... (a physical drive on the computer) instead
    of \\network\redirections\user\... (a universally accessible network path) and so none of the other computers will be able to find the linked files, defeating one of the
    major benefits of using Redirected Folders.
    I can't believe that I need to choose between indexed searching and proper path names in saved files. Surely there is a way to use an indexed search on the server itself?
    If you need any more info to help me troubleshoot, please let me know.
    Thanks for any help,
    Colin

    Hi Colin,
    It seems that we can not use indexed search on DFS shares. Windows Search works well when users directly access the server. That is, the server is not made available through Distributed File System (DFS).
    For more detailed information, you could refer to the links below:
    Windows Search Service, Clustered File Services, DFS, Win7 Libraries
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/31ac4c16-948b-4ca4-b18f-3a339cdfd5b9/windows-search-service-clustered-file-services-dfs-win7-libraries?forum=winserverfiles
    Windows Browse and Organize Features
    https://technet.microsoft.com/en-us/library/dd744693(WS.10).aspx
    Best Regards,
    Mandy 
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • File Adapter Not Reading Large Files

    Dear Experts,
    Enviornment :-
    OS:-Linux
    Jdeveloper:- 11.1.1.6
    SOA:-11.1.1.6
    Weblogic:-10.3.6
    JDK:-SUN
    Allocated RAM:-16GB
    Currently we are in UAT Phase and now we are facingan  issue in reading large file.Below is the Design details of the service
    FileAdapter(Read)-->Bpel(Business login,Using FlowN)-->FileAdapter(Write CSV),JMS Adapter(AQ JMS topics)
    In this case at the time of read itself we are facing issue. File adapter reading xml file but in receive activity receives input data as
    xmlDocKey:1C135990067411E3BFA6B5087B629F9DI
    I really couldn;t understand about the error. Even i tried reading as Opaque format and still end up with same error.
    In order to make sure i have create mediator and tried reading the file, in case i was able to read file upto 15mb with out any error.Also i tried as  "read as Attachment" in Bpel component and able to read the attachment upto 7 mb file, but this is hitting the performance side.
    I request some one please let me know why the file adapter is giving XmlDOCKey rather then XMLContent to the inputvariable
    Regards,
    Tarak

    Can you check your BPEL Properties in EM?
    Go to Soa-infra > right Click > SOA Administration > BPEL properties
    increase the Dispatcher Engine Thread = 10, Dispatcher Invoke Threads = 60 and Dispatcher Engine Threads to 90
    Click on "More BPEL Configuration Properties"
    Increase the  DispatcherMaxRequestDepth from 600 to 1000.
    Bounce the server and see if works..
    Bounce the server and try again.
    If this fails, try get a threshold by increasing the file size until it fails again. 

  • Problem with nextDouble when reading txt files

    Hello, im very new to java and im trying to read a double number from a text file but I get an error if i dont write int values, for example:
    my txt file:
    John Smith
    32.5part of my Java code:
    out.println(myScanner.nextLine());
    out.println(myScanner.nextDouble());(myScanner read my text file)
    but I get this error:
    Exception in thread "main" java.util.InputMismatchException
    at java.util.Scanner.throwFor(Scanner.java:840)
    at java.util.Scanner.next(Scanner.java:1461)
    at java.util.Scanner.nextDouble(Scanner.java:2387)
    at TeamFrame.<init>(TeamFrame.java:15)
    at Baseball.main(Baseball.java:14)
    Im following the Java for dummies book and according to the book this should work.

    (Please post using the {code} tags - you put {code} at the start of your code and again at the end so that it's readable when it appears here. If nobody has replied to your post you can edit it and put the tags in now.)
    The code you posted doesn't correspond to the data you posted originally.
    Also when you say "nextLine()" the scanner reads and return s a line and it moves to the next line. But when you say "nextInt()" or "nextDouble()" it doesn't move to the next line even when there's nothing but an int or a double on the line it's reading. That's because there is a newline character and the scanner stops just before that.
    The solution is to say nextLine() straight after every nextInt() or nextDouble(). The nextLine() - whose result you just throw away - will move you to the next line.
    You do this in the case of the int you read, but not in the case of the doubles.
    Edited by: pbrockway2 on Jan 3, 2008 12:35 PM
    Posted with regard to:import java.util.Scanner;
    import java.io.File;
    import java.io.IOException;
    public class Baseball {
    public static void main(String[] args) throws IOException {
        Scanner myScanner = new Scanner(new File("C:\\Users\\Dennis\\Documents\\
            JCreator LE\\MyProjects\\first\\Baseball\\src\\
            Hankees.txt"));
        int nrPlayers = myScanner.nextInt();
        myScanner.nextLine();
        for (int num = 1; num <= nrPlayers; num++) {
            String name = myScanner.nextLine();
            double average = myScanner.nextDouble();
    }

  • Topic title overwritten with file name when importing html-file

    I have a problem in RH8. When I import a html-file that has a topic title that is different to the file name, RH somehow overwrites the topic title with the file name. The html-files that I need to import into my help project DO have a topic title (with the html tag 'Title') so this is not caused by an empty og non-existing title tag.
    I have searched the forum and found that this was also an issue in RoboHelp 6 and by then fixed in a service pack. I have long ago installed the two service packs to RH8, but I can see in the 'read me' for the service packs, that this has not been dealed with.
    I also have RH 7 installed on my pc, and the problem does not occur in a RH 7 help project.
    Best Regards

    Yes, I am sure I am not mixing up Topic Title and Topic Heading.
    The files are generated in a Access database created by our own developers. We have used this database for generating html-files for our RH-projects for years without any problems.
    Below I have copied the HTML code from one of theese files (with the file name '10001.htm') before importing it into RH8:
    <!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">
    <html>
    <head>
    <title>
    Agreement
    </title>
    <LINK rel='StyleSheet' href='default.css'>
    </head>
    <body>
    <h1>
    Agreement
    </h1><p>
    An agreement is a written obligation between a project and a contracting party regarding the
    participation in the project, delivery to the project, or transfer of the project&#39;s products
    and services. Please see Vejledning: Aftaler og aftaleparter.
    </p>
    </body>
    </html>
    And after importing it to RH8:
    <?xml version="1.0" encoding="utf-8" ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="generator" content="Adobe RoboHelp 8" />
    <title>10001</title>
    <link rel="StyleSheet" href="default.css" type="text/css" />
    </head>
    <body>
    <h1>Agreement</h1>
    <p>An agreement is a written obligation between a project and a contracting
    party regarding the participation in the project, delivery to the project,
    or transfer of the project's products and services. Please see Vejledning:
    Aftaler og aftaleparter.</p>
    </body>
    </html>

Maybe you are looking for

  • How to install oracle client

    hi, Could any body tell that, how to change the oracle client of forms 6.0.8.26 , from 8.0.2 to 10.1. i have installed oracle 10.1 client and forms 6.0.8.26 , now i wanted to make the oracle_home of these oracle client and forms to be same. Any body

  • New Accesslayer Switch 2960S vs 3560X

    Hallo together, so we plan to acquire new access layer switches for a medium sized LAN. So there are three switch types we shortlisted. 1. WS-C3560X-48P-L 2. WS-C2960S-48LPD-L 3. WS-C2960S-48LPS-L So could anybody tell me advantages / disadvantages o

  • Should Apple TV be put into standby mode when not in use?

    Anyone, When I am done watching Apple TV, should I put it into standby mode or leave it on? Just want to take of my new favorite toy!!!!

  • [solved] JPA - persisting parent & child entities in one hit

    Hi, I have an object say, "Bus" and it has a one to many relationship to another object, "Commuter". Suppose i create one Bus instance and one commuter instance and associate them to each other and i want them to save to the database and store the re

  • Please help me with my stupid ipod nano!!

    hi well ive just had it "repaired" in the US and they said my software on my ipod was corrput so they apparently fixed it. well just plugged it into my comp and... nothin my ipod wont even turn on. it was flashin the apple sign but not even doing tha