How to check File size of a Text file.

How to check File size of a Text file.
please explain me.
I am new in LabVIEW. and dont have much idea on this...;
Prashant Soni
LabVIEW Engineer
Solved!
Go to Solution.

Hi Prashant,
and here's what you get when using the LV help...
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome

Similar Messages

  • How to check if there is specific text in a word document ?

    Hello everyone ,
    I have a form include text box1  , I need to check a word document if  there is specific text inside it , if it’s true the textbox1.text = 1 , if it’s false the textbox1.text = 0 , and so on .
    to be clear I’m trying to check a lot of things not just specific text also ( font size , font color , font type , photo , table …………etc ) .
    I read a lot of threads about Office Automation , all about how to create a new documents and insert text tables photos….. etc, but what I need just to check if it existing or not
    Any idea , books, threads ,examples ….
    Thanks in advance.
    Visual Studio 2013
    office 2007

    "1- what if i need to check that word in the beginning of the second paragraph in that document or at the end of the third paragraph "
    to find a word in a paragraph, use the range keyword as in
    Dim rng As word.Range = objDoc.Paragraphs(1).Range
    rng.Find.Execute(FindText:="yourtext")
    " can you give me any website or books , to learn how to check  ( font size , font color , font type , photo , table
    …………etc ) and return with (1,0) or (true ,flase)."
    You can use the range object here aswell
    If rng.Font.Size = 7 Then TextBox1.Text = 1
    Look at this link for a multiple of examples about word automation
    https://msdn.microsoft.com/en-us/library/78whx7s6(v=vs.80).aspx

  • How to check total size of attachment stored in database?

    Hello guys,
    Firstly I'm new to this forum & SAP Basis. Therefore i want to apologize if i'm posting in wrong area.
    Actually I want to know how to check total size of attachment that have been uploaded in ECC.
    From the current database size, how can i check how much space have been used to store attachment such as pdf, doc, xls and tif. I  want to know how much space have been utilized by those attachments from August 2010 until now.
    FYI, those are PR, PO & MIGO attachments.
    Where do i start? What are the tables to check? Which table keeps record of the attachment size? etc.. etc..
    Really appreciate if you guys can give me some guideline.
    Thank you & Rgds,
    fafizah.

    Hi,
    As such there is no direct way to do this but if you will able to find out which all table stores the attachment then you can find out the size of those table from database level.
    Thanks
    Sunny

  • HELP !!! How to check the size of an object in Photoshop ?

    Hello,
    I'm using Photoshop CS 3 to design a website. I used several shapes such as rectangle, line or ellipse of different size. Probably it is a stupid question but I don't know how to check the size of an existing rectangle. I tried free transform tool that selects my rectangle but doesn't show its size. Then I made a selection with rectangular marquee tool but I see nowhere the size of the selected area.
    If you know the name of such a tool please help me !
    Have a nice day !

    Web images are all pixels. View at 100% at pixel view. that is your exact size

  • How to check image size in oracle 9i & 10g database

    hi,
    i have inserted an Image into a table in oracle database & I want to View the Query How to check image size in oracle 9i & 10g database
    thanks
    Edited by: user8920919 on May 30, 2010 1:43 AM

    user8920919 wrote:
    hi,
    How to check image size in oracle 9i & 10g database
    thanksWhat do you mean with "image size"?

  • How to check client size in SAP

    Hi All,
    I would like to check the size of production client so i can do system refresh to QA. I need to know how to check client size only not database size.
    Regards
    Atul-

    Hi
    Yes, there is a report called YSTABSIZ which can calculate the size of the client.
    1. Login to the target client ( for which the client size to be calculated)
    2. Run SE38 , execute YSTABSIZ by selecting the table *
    3. Execute the report in background
    Once the client is deleted, the space which is free can be used to fill in with newly added data
    but if you want to see the actual space reduction in DB02,it can be acheived only with DB reorganization
    OSS notes 118823 and  for this purpose
    Hope ths helps
    Please reward points
    Sunil

  • How to check file is exists  in specified path in content server or not

    i m using JDevloper 11.1.1.6.0
    I want to upload file using RIDC functions,but before uploading it i have to check wheather it is already present on specified path in content server or not.
    How i check it.

    I tried to write a (simpler) version of my own code:
        public static Results CheckInToFolder(File f) {
            // create the binder
            DataBinder checkinDoc = idcClient.createBinder();
            // populate the binder with the parameters
            checkinDoc.putLocal("IdcService", "CHECKIN_UNIVERSAL");
            checkinDoc.putLocal("dDocTitle",
                                "Document checked in through RIDC at " +
                                new Date());
            checkinDoc.putLocal("dDocType", "Document");
            checkinDoc.putLocal("dDocAccount", "");
            checkinDoc.putLocal("dSecurityGroup", "Public");
            checkinDoc.putLocal("dCollectionID", "909964822906001607");
            // add a file
            // execute the request
            try {
                checkinDoc.addFile("primaryFile", f);
            } catch (IOException e) {
                myExecutable.logEvent("File" + f.getName() + " not found.");
                return null;
            ServiceResponse checkinResponse;
            try {
                checkinResponse = idcClient.sendRequest(userContext, checkinDoc);
                myExecutable.logEvent("Check-in successful. Size:" + f.length() + " bytes");
            catch (oracle.stellent.ridc.protocol.ServiceException e) {
                            myExecutable.logEvent("ServiceException");
                            e.printStackTrace();
                            return null;   
            catch (IdcClientException e) {
                myExecutable.logEvent("Check-in failed.");
                e.printStackTrace();
                return null;
            DataBinder checkinData;
            try {
                checkinData = checkinResponse.getResponseAsBinder();
                Results res =
                    new Results(checkinData.getLocal("dID"), checkinData.getLocal("dDocName"));
                myExecutable.logEvent("Successfully got response - dID is " +
                                      res.getDID() + ", dDocName is " +
                                      res.getDDocName());
                return res;
            catch (oracle.stellent.ridc.protocol.ServiceException e) {
                            myExecutable.logEvent("ServiceException2");
                            //e.printStackTrace();
                            return null;   
            catch (IdcClientException e) {
                myExecutable.logEvent("Unable to get response.");
                e.printStackTrace();
            return null;
        }What I'm getting is this:
    Mon Aug 13 14:51:29 CEST 2012 0ms: Started
    Mon Aug 13 14:51:29 CEST 2012 57ms: Connection to idc://192.168.44.129:4444 successfully established.
    Mon Aug 13 14:51:29 CEST 2012 102ms: Check-in successful. Size:702 bytes
    Mon Aug 13 14:51:29 CEST 2012 5ms: ServiceException2
    Mon Aug 13 14:51:29 CEST 2012 0ms: Finished
    This means:
    a) it does, indeed, return the exception (oracle.stellent.ridc.protocol.ServiceException)
    b) you could use this mechanism for your code
    c) it is, indeed, primaryFile.name what's being checked
    I will also take a look at the other service to perform the check prior to check-in service call.

  • How to determine the size of selected text

    Hi
    I'd like to draw a box around some selected text (a textRange), however I can't figure out how to detemine the size or position of the text.  The overall size of a textFrame is possible to find (not sure about position), but when you've got just a few characters selected I don't see any way to get the size or position.  Any ideas?

    You may have to do some testing of your own with this… I tested here and 'think' its OK but could have overlooked something… For me the best way to get this data is to outline the type store the info in a variable then undo the outlining process… You can then continue your script with info in hand… An example that draws a box over each selected character… I cheated with only the one text frame but you can resolve that? You could easy use math.min & math.max to draw around an array of bounds… I didn't bother with a load of tests it expects selected text range as is… have fun…
    #target Illustrator
    textBoxer();
    function textBoxer() {
              var i, doc, sel, start, end, spaceB4, spaceInc, mat, grp, count, boxes;
              doc = app.activeDocument;
              sel = doc.selection;
              start = sel.characterOffset-1; // Not zero based…
              end = start + sel.length;
              doc.selection = null;
              spaceB4 = doc.textFrames[0].contents.substr( 0, start );  // Cheated here you will need to find parent frame…
              mat = spaceB4.match( /\s/g ); // Resolve the lost of white space characters before selection
              mat != null ? spaceB4 = mat.length : spaceB4 = 0;
              spaceInc = doc.textFrames[0].contents.substr( 0, end );  // Here too…
              mat = spaceInc.match( /\s/g ); // Resolve the lost of white space characters in selection
              mat != null ? spaceInc = mat.length : spaceInc = 0;
              grp = doc.textFrames[0].createOutline(); // Items in new group are last to first order
              app.redraw();
              count = grp.compoundPathItems.length;
              boxes = Array();
              for ( i = 0; i < count; i++ ) {
                        boxes.push( grp.compoundPathItems[i].visibleBounds );
              boxes.reverse(); // Fix the order
              app.undo(); // Bounce back…
              app.redraw();
              start = start - spaceB4;
              end = end - spaceInc;
              for ( i = start; i < end; i++ ) {
                                  doc.pathItems.rectangle( boxes[i][1], boxes[i][0], boxes[i][2]-boxes[i][0], -boxes[i][3]- -boxes[i][1], false );
              app.redraw();

  • How to set fixed size for inputfile text field

    Hi all,
    I am using inputfile component to test file uploading so I created a simple upload page. When I finished upload the file, the input text field will "shrink" its size and change the size to adjust the file name. Is there any way to set a fix size for input text field?
    Here is some part of the code:
    <af:form id="f1" usesUpload="true">
    <af:panelHeader text="File Uploader" id="ph1">
    <af:inputFile label="File to upload" id="if1" autoSubmit="true" valueChangeListener="#{fileBean.fileUpdate}"
    value="#{fileBean.file}" partialTriggers="if1"
    columns="50"/>
    </af:panelHeader>
    <af:commandButton text="Save" id="cb1"/>
    FileBean:
    public void fileUpdate(ValueChangeEvent valueChangeEvent) {
    RichInputFile inputFileComponent = (RichInputFile)valueChangeEvent.getComponent();
    UploadedFile newFile = (UploadedFile)valueChangeEvent.getNewValue();
    UploadedFile oldFile = (UploadedFile)valueChangeEvent.getOldValue();
    Thanks,
    Jerry

    you can set columns attribute in af:inputfile. Please see highlighted area i have inserted to you code
    <af:form id="f1" usesUpload="true">
    <af:panelHeader text="File Uploader" id="ph1" columns = "34" >
    <af:inputFile label="File to upload" id="if1" autoSubmit="true" valueChangeListener="#{fileBean.fileUpdate}"
    value="#{fileBean.file}" partialTriggers="if1"
    columns="50"/>
    </af:panelHeader>
    <af:commandButton text="Save" id="cb1"/>

  • How to check file name in APP server

    Hi,
    Iam writing some files to APP server .Iam unable to check those files by using AL11. How to check those files in APP server?

    Hi,
    You can use this FM EPS_GET_DIRECTORY_LISTING.
    Also please try this FM /SAPDMC/LSM_F4_SERVER_FILE.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_apath.
    * Open the Browse Dialog Box on the Application Server
    CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
      IMPORTING
        serverfile = p_apath
      EXCEPTIONS
        canceled_by_user = 1
        OTHERS           = 2.
    IF sy-subrc <> 0.
    * No need to check for sy-subrc
    ENDIF.
    Regards,
    Ferry Lianto

  • How to change the size of the text inside a label?

    Hello,
    I would like to change the size of the text inside a label.
    Is there any way to do it Web DynPro?

    Hello Roy,
    Not possible. WDLabelDesign contains only 2 values: STANDARD and LIGHT. As workaround you can use TextView. It supports a lot of "designs" (e.g. label_small).
    Best regards, Maksim Rashchynski.

  • How to check the content in a text file line

    hi all,
    i had the following problem:
    There is a text file with multiple lines of data in it
    The data comprises of characters, numbers and symbols
    In this file, any line can be commented (till the end) by using symbol ';'(semi-colon)
    Now i have to find the number of occurences of a symbol '$' in this data, such that
    it should not exist in a commented line
    One more limitation is that ';' (semi-colon) could occur at any position in a line, i.e., if this occured in the middle of the line, then all the following data in the line is taken to be as commented one and we have to skip it and move to next line.
    Plz do help.
    Regards,
    santosh
    Regards,
    santosh

    Hi santosh,
    just a guess this is what you need.
    Greets, Dave
    Message Edited by daveTW on 09-15-2006 09:59 AM
    Greets, Dave
    Attachments:
    search & count $.vi ‏13 KB
    search & count $.png ‏10 KB

  • How to check files in the directory using JSP?.

    Hi,
    How can i check the file is directory or file and readable or writable and file size and type of file(Ex. jpg, txt, doc., etc). i want to list the specific type of file in the particular directroy.. please help me..
    Regards
    CHinna

    With the File class, using the methods isFile(), isDirectory(), canRead(), canWrite(), length() and getName()
    With File.listFiles() you can get a directory listing. If you want to limit the amount of files returned, you can pass your own FileFilter to it.
    http://java.sun.com/javase/6/docs/api/java/io/File.html

  • How to check image size and 500PX upload action please!

    Hi,
    Two questions please.
    1. How do you check the overall size of an image in Lightroom 4 before exporting.  In Photoshop it is image/size so what is it in Lightroom please?
    2. I have Canon raw files and tiffs and want to upload to 500PX and other web site galleries in one action.  Is it possible?  How do you set up an action to convert an image, say a tiff, to a certain size and then save as a jpeg and upload to 500pX using the plugin all in one action?  At the moment I am saving the tiff as a jpeg to a correct size using a pre set, but then exporting to another folder ready to either manually upload or re-import to Lightroom as a jpeg then upload. Surely there is a quicker way than this?

    1. The size is visible in the metadata panel, set the dropdown to EXIF. In addition, in the Grid, with Ctrl-J, you can set the options so that you will see the cropped size in the rectangle surrounding the photo.
    2. You cannot, in one action, upload to multiple galleries. Each upload is its own action. I don't know if there is a plug-in to let you upload from LR to 500px in one action; clearly there are plug-ins for Flickr and Smugmug and several others. There should be no need to re-import. Normally, the plug-ins I mentioned will take a TIFF, resize it according to your directions, convert to JPG and upload.

  • How to change the size of the text box in resume template?

    Hi, I started a document using the "Traditional Resume" template. I'd like to enlarge the main text box but for the life of me, I can't figure out how. I suspect it's something to do with changing the documents template but I can't figure it out.
    Can anybody help?
    Thanks.
    Message was edited by: Michael Hoyt

    Hi:
    I am using the "Milano Resume" template. I've taken your suggestion to widen the margins, and I've added the vertical ruler on the side, but is it possible to "stretch" the main "box" of the template vertically?
    I ask b/c I want to enlarge the font size to 10 pt., but in doing so I'm running out of room at the bottom and my text is being pushed onto a second page.
    Thanks,
    Bill in CT

Maybe you are looking for

  • Days of Payment Terms

    Hi All, I want to know the No. of Days according to <b>Payment Terms</b>..... Path of the Payment Terms: Goto SE11 and insert T. Code <b>V_T052</b> in Database Table...... Click on Display Icon....Now click on Contents (CtrlShiftF10).... Now Display

  • Removing a song that isn't on the "iPod Selection" list - but its on iPod!

    Firstly, let me say - I am a technocripple!! I don't know how I managed this one, but I am trying to delete a song from the iPod itself... However it is not listed in the "iPod Selection" playlist (or another playlist for that matter) the only time I

  • Loading pages from a internet explorer gets blocked

    hi my problem is simple, in my jsp i have two window.open's, one opens a jsp directly and the other is sending a request to a servlet and it opens a jsp. now the second one(redirecting to servlet) gets blocked if the blocking option is set, so i cann

  • Weird White text at the bottom and in the search bar of iTunes

    So my iTunes (ver.10) somehow has a weird white colored text at the bottom where it tells you what your song count, days, and gigabytes in your library are? And the text is a super light gray in the search box in the upper right hand corner...what th

  • Firmware 7.3.2

    Remember back to the end of June, pre MobileMe and iPhone when the updates were coming thick and fast, OS X 10.5.4, Airport Utility 5.3.2 and the Firmware Update for Time Capsule? There was much weeping and gnashing of teeth, especially with the Time