How to get string (specified by line and column) from txt file with labview

Hi everyone
How to get string (specified by line and column) from txt file with labview
thx 
Solved!
Go to Solution.

As far as I know, a text file has no columns.  Please be more specific.  Do you mean something like the 5th word on line 4, where words are separated by a space, and lines are separated by a newline character?  You could the Read from Spreadsheet String function and set the delimiter to a space.  This will produce a 2D array of strings.  Then use index array and give the line number and column number.
- tbob
Inventor of the WORM Global

Similar Messages

  • How do I keep account of line and column number within JTextArea?

    How do I keep account of line and column number within JTextArea?
    Thanks.

    hi kamlesh,
    to get the number of columns in a JTextArea u have the function
    getColumns() which gives u the number of columns in the text area.
    To get the number of rows present u have the function
    getRowCount() which returns an int that specifies the number of rows in the text area.
    Hope this helps
    Cheers :)
    Nagaraj

  • I need to get back individually erased photos and videos from my iMac with no backups to help. Please help

    i need to get back individually erased photos and videos from my iMac with no backups to help. this is an attempt to consolidate all my data, new and old so I can uninstall Maverick and put Mountain Lion back on my iMac.  Any help would be greatly appreciated.

    If the files have been overwritten and you don't have a backup, they're gone.
    If they have not been overwritten, then there are third-party apps (for example Techtool Pro 7 ) with data recovery functions that might be able to retrieve some or all of your files.
    Backing up is good.

  • How to get data in a line in reporting from 2 data sources

    Hi
    my infocube gets data from 2 datasources and once the data is loaded into infocube , its show the data from 1st datasource in one line and shows data from 2nd datasource in second line
    my requirement is to show the data in reporting in a single line
    EX: my first datasource has----
    personnel no,name,age,position count
         my second datasource has----
    personnel no and salary
    now i want all these fields in a single line in my Report
    Regards,
    Swamy.

    Hi Narayana,
      U can't achive the output in a single line  by directly loading two datasources into the infocube.
    If two datasources have same characteristics and if u show same key figure then they will come in single row ...when characteristics differ they will come in seperate lines
    u can load the sec datasource to another dso and make a look with personnel no in the first dso to cube transformation then u can achieve it ....
    Regards
    vamsi

  • How to get the document type, name and revision from the search page cv04n

    Hello,
    After performing cv04n and getting a list of documents satisfying the search criteria, how can I then get the document type, name and revision of the selected document using ABAP?
    Thanks

    HI,
    IN table DRAW... u have Document type, Version and document number.
    In Table DRAT also u get Document Type, Version, Number and Description of Doucment.
    Regards
    SAB

  • How to erase lines and columns from a pdf document

    hi, i have a pdf document with rows and columns and some text writen in them. I want to be able to delete the rows and columns but i haven't found a way to do that yet.Can anyone help me please??? i can delete the content in the cells but not the row/column itself. Also i want to do the opposite thing in another pdf (add rows and columns), i also haven't found the way yet
    Thank you!!

    This is a very long way from what is possible. Acrobat is not a design tool or word processor. You can delete what is at a location on the page, but it sounds as if you expect the text to reflow and close up the gaps - this will not happen.

  • How to get Document type , number , part and version from mm01

    Hi ,
    Can you help me out so that i can able to get the document type , number , part ,version from mm01. Iam using exit EXIT_SAPLMGMU_001 but i was not able to get those details inside the parameters . I not able to get any values inside wmara parameter. ?
    Regards,
    Sivaganesh

    Hello Siva,
    Try with the below 2 BADI's
    BADI_MM_MATNR
    BADI_MATERIAL_CHECK
    Regards,
    TP

  • How can I read only a line of text from a file, line by line using Scanner?

    Here's the code I currently have for a program that finds a keyword from numerous files and prints every line in every file that has that keyword. The keyword is indicated by the first parameter in a command line and the files are every parameter after that. Right now, with the code I have, the program will not print multiple lines of each file if they contain the keyword. I am trying to solve this problem by figuring out a way to have a loop continue until an \n EOL character is found. I am not sure how to do this though. Here's the portion of code that I would like to change to do this. I need to add a condition somewhere after in.hasNext() I think to stop when it it hits a /n.:
    while (in.hasNext()) {
                        count++;
                        String nextWord = in.next();
                        lineOfText.add(nextWord);
                        if (nextWord.equals(keyword)) {
                            flag = true;
    import java.util.Scanner;
    import java.io.IOException;
    import java.io.FileNotFoundException;
    import java.io.FileInputStream;
    import java.io.PrintWriter;
    import java.util.ArrayList;
    public class Find {
        static ArrayList<String> lineOfText = new ArrayList<String>();
        static boolean flag = false;
        public static void main(String args[]) {
                   run(args);
        public static void run(String args[]) {
            try {
                PrintWriter out = new PrintWriter("output.txt");
                String keyword = args[0];
                for (int i = 1; i < args.length; i++) {
                    Scanner in = new Scanner(new FileInputStream(args));
    int count = 0;
    while (in.hasNext()) {
    count++;
    String nextWord = in.next();
    lineOfText.add(nextWord);
    if (nextWord.equals(keyword)) {
    flag = true;
    if (flag == true) {
    System.out.print(args[i] + ": " );
    out.print(args[i] + ": " );
    for (String s : lineOfText) {
    System.out.print(s + " ");
    out.print(s + " ");
    System.out.print("\n");
    out.println(" ");
    lineOfText.clear();
    out.close();
    catch (FileNotFoundException e) {
    System.out.println("file not found!");
    catch (IOException e) {
    System.out.println(e);
    Thanks

    Well, I thought I had this program finished, then I realized I need to match the keyword anywhere in the file(including within a word) and print out each line that "contains" the keyword in each file. So, I need some way of testing to see if the keyword is a part of each word and then flag the line that contains the keyword. Is there some method to do this? Thanks
    Here's the code I have now:
    import java.util.Scanner;
    import java.io.IOException;
    import java.io.FileNotFoundException;
    import java.io.FileInputStream;
    import java.io.PrintWriter;
    public class Find {
        static String line = "";
        static boolean flag = false;
        static boolean flag2 = false;
        public static void main(String args[]) {
                    run(args);
        public static void run(String args[]) {
            try {
                PrintWriter out = new PrintWriter("output.txt");
                String keyword = args[0];
                System.out.print("Searching for the keyword: " + keyword);
                out.print("Searching for the keyword: " + keyword);
                System.out.print("  in files: ");
                out.print("  in files: ");
                for (int k = 1; k < args.length; k++)
                     System.out.print(args[k] + " ");
                     out.print(args[k] + " ");
                     System.out.println("\n");
                     out.println("");
                     out.println("");
                for (int i = 1; i < args.length; i++) {
                    Scanner in = new Scanner(new FileInputStream(args));
    while (in.hasNextLine()) {
    line = in.nextLine();
    String[] splitLine = line.split(" ");
    for (int j=0; j < splitLine.length; j++) {
    if (splitLine[j].equals(keyword) && flag2 == false) {
    flag = true;
    flag2 = true;
    System.out.print(args[i] + ": " + line + "\n");
    out.println(args[i] + ": " + line);
    flag2 = false;
    System.out.print("\n");
    out.println(" ");
    out.close();
    catch (FileNotFoundException e) {
    System.out.println("file not found!");
    catch (IOException e) {
    System.out.println(e);

  • How to get the content of a website to a txt file via powershell

    Hello,
    I have a reporting server that creates a report to a URL, by running multiple .xsl files. I want to be able to gather the data in the URL and convert it to csv or txt file via powrshell.
    Again I want the data inside the URL, I've been playing around Net.Webclient but I'm not getting what I need.

    If you're using PowerShell 3.0 or later you can try using Invoke-WebRequest.
    This previous thread shows how you can download the content from the page.
    Without knowing what type of content (i.e. text vs images vs other objects) is on the page it's hard to say if this will work for you.
    Jason Warren
    @jaspnwarren
    jasonwarren.ca
    habaneroconsulting.com/Insights

  • Writing and outputing from txt file

    Hello guys,
    Can you guys show me where I can find the source of learning how to writing and getting the data that I input to the text file?
    Thanks.

    The java tutorial of course!
    http://java.sun.com/docs/books/tutorial/index.html
    The section about I/O is:
    http://java.sun.com/docs/books/tutorial/essential/io/index.html

  • How to identify a blank new line in an open txt file

    hi all
    i'm reading a file, and i have to identify all the blank new lines.
    does anybody can help me?
    thanks to all !!
    follows a sample of the code i'm writing:
    fHandler := UTL_FILE.FOPEN(FileAttuale.Oracle_Input,FileAttuale.Nome_File, 'r');
    -- Lettura file
    BEGIN
    WHILE 1 < 2 LOOP
    Line_Number := Line_Number + 1;
    -- Leggo riga per riga finche non viene lanciata la eccezione NO_DATA_FOUND
    UTL_FILE.GET_LINE(fHandler, buf);
    if (buf is a blank new line) then
    end if;
    END LOOP;
    END;
    documentation says:
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/u_file.htm
    Because the line terminator character is not read into the buffer, reading blank lines returns empty strings.
    but if i try
    IF (BUF ='') THEN
    do something
    END IF;
    IF (BUF is null) THEN
    do something
    END IF;
    don't do nothing!!
    thanks all
    Edited by: Massimo T. on 4-mag-2011 12.05

    13 is ^K also known as Vertical Tab No Massimo, it's ^M, that is Carriage Return : you have to consider Dec column, since ASCII function returns the decimal representation in the database character set of the first character of char.

  • How to get 'exit event' script to execute again when form file with saved data is re-opened?

    I have created an Adobe Dynamic XML Form using LiveCycle Designer with many fields / subforms that are ‘visible’ or ‘hidden’ dependent upon the options selected from various Drop-Down Lists. The form has also been save-enabled. Users can successfully complete the form and save a copy with the data that has been input.
    The problem I have is that when the saved file is re-opened the ‘hidden’ fields / subforms which were previously made visible by selection of the appropriate options from the Drop-down Lists are now NOT displayed. However if you make the same selections from each of the Drop-down Lists AGAIN the hidden fields / subforms are displayed and do contain the data that was entered.
    The problem appears to be that the script which determines whether a field / subform is ‘hidden’ or ‘visible’ is an
    <event activity="exit" name="event__exit">
    which is followed by
    if (this.rawValue == "0")- (i.e. the value of the Drop-down List)
    sfCompanyDetails.presence = "visible";
    sfRecruitmentAgency.presence = "hidden";
    etc, etc
    and, therefore, it is not executed again when the saved file is re-opened.
    Can anyone please advise how to achieve this?

    Moved from Adobe Connnect Forums.

  • Getting photos to iPad 1 and iPhone from macbook pro with icloud.

    Icloud seems fine - except my photos are not showing up on IPad 1 or iPhone.  Macbook pro is running Lion 10.7.2 and the other two devices have iOS 5.0.1.  I've checked all three have photos switched 'on' for icloud.
    What am I doing wrong?
    Its sunny here in Whitstable today!

    Welcome to the Apple Community.
    Have you added any photos to Photostream on your macbook pro.

  • How to get the activity instance id and process id

    Dear All,
    For my case, my boss require the workflow program processor can be runtime assigned . After research, I found the coding example like below:
    // dynamically assign a user to a role
    rtm.addRuntimeDefinedUserToRole(
                      // process instance
                      prInstance,
                      // role name
                      "Processor",
                      // user that is assigned (IUser)
                      user,
                      // user context (IGPUserContext)
                      userContext);
    // dynamically change the user assigned to a role for a particular task
    String prInstanceID = prInstance.getID();
    rtm.changeTaskProcessor(
                      // process instance ID
                      prInstanceID,
                      // activity instance ID
                      activityInstanceID,
                      // current user (IGPUserContext)
                      currentProcessorContext,
                      // new user (IGPUserContext)
                      newProcessorContext);
    But I don't know how to get the process instance ID and activity instance ID before I can apply this api in my webdynpro application.
    Any gentllement can give me an idea.
    Thank you.
    Regards
    Eric

    process =  GPProcessFactory.getDesigntimeManager().getActiveTemplate(
                                  // by specifying its ID "CCD2C3F1BED111DD9DFA005056A9416C",/
                                                 /* and the user accessing it */ userContext);
         //          retrieve the Runtime Manager
         IGPRuntimeManager rtm = GPProcessFactory.getRuntimeManager();
         // create an empty role assignment list
         IGPProcessRoleInstanceList roles = rtm.createProcessRoleInstanceList();
         //Initialising the input params
         IGPStructure params =GPStructureFactory.getStructure(process.getInputParameters());
         params.setAttributeValue("Name",value);
         //Starting the process
         IGPProcessInstance prInstance = rtm.startProcess(process,"Process Name","Process name",user,roles,params,user);

  • How to get string value from xml in JSF??

    In JSF How to get string value from xml, .ini and properties file. I want to get string value from xml or text to JSF

    Just use the appropriate API's for that. There are enough API's out which can read/parse/write XML, ini and properties files. E.g. JAXP or DOM4J for xml files, INI4J for ini files and Sun's own java.util.Properties for propertiesfiles.
    JSF supports properties files as message bundle and resource bundle so that you can use them for error messages and/or localization.

Maybe you are looking for