How to open a file, change the name and write file

Hi,
I want to open an existing .dat-file in Labview, manipulate the data and save this data into a new file with a different file name.
Though the name should be different I would like to use the old name and add something to it.
(In my programm the .dat file containes the date and time the data was
measured and I would like to keep this information in the filename.)
For example: the original title is file1.dat now I want to save it as file1_manipulated.dat
Is that possible? What is the best and easiest way to do it?
Thanks a lot
Chris

Hi Mike,
thanks for your help.
This will give me my path in string format. But to open a new file and then write my data into it, I need a path format (see right side of png)
Is that right?
I attached a png, so you hopefully get an idea where this is going. (I know this won´t work yet)
I open a file and this filename depends on the date and time the data was recorded. So I can´t work with a stringconstant.
Sorry for this beginner questions - this stuff is absolutly new to me.
Thanks in advance
Chris
Attachments:
newfile.png ‏11 KB

Similar Messages

  • Every time I download a file to my macbook pro, it saves it to downloads but changes the name and inserts % sign.  Please advise how to correct the name that it is saved under.

    Every time I download a file to my macbook pro, it saves it to downloads but changes the name and inserts % sign.  Please advise how to correct the name that it is saved under.

    Anything Downloaded with a Particular Apple ID is tied to that Apple ID and Cannot be Merged or Transferred to a Different Apple ID.
    Apple ID FAQs
    http://support.apple.com/kb/HE37

  • Change the name of a file.

    Hello, I don't how can I change the name of a file ?.
    Somebody can help me, please?
    For example : c:\out\prove1.csv to  c:\out\prove1_09112007_163001.csv
    Thanks

    Another way would be to use the FILE_COPY and
    FILE_DELETE of the class CL_GUI_FRONTEND_SERVICES to first copy the file and then delete the other one.
    REgards,
    Rich Heilman

  • How can I edit or change the name of a bookmark in the bookmark library window?

    How can I edit or change the name of a bookmark in the bookmark library window? I can figure out just about everything else I can do in the window, but can't seem to edit a bookmark.
    thank you

    In the Bookmarks Manager you can change the properties of a bookmark in the Details pane at the bottom right.<br />
    That Info pane has a More/Less button to show or hide extra properties.
    * You can change the Properties (including the name) of a Bookmark or Tag in the Details (Properties) pane at the bottom of the right pane in the Bookmarks Manager (Bookmarks > Show All Bookmarks: Shift+Ctrl+B) after selecting an item. You can rename a tag by selecting the Tags folder in the left panel and change the name in the Info pane at the bottom right.
    * You can make changes to a Bookmark in the Bookmarks menu drop down list or in the side bar (View > Sidebar > Bookmarks, Ctrl+B) via the Properties entry in the right-click context menu.
    * You can open a bookmark in a tab and click the yellow (blue on Mac) star in the location bar to open the "Edit This Bookmark" dialog and see in which folder a bookmark is located.

  • BEx Brodcaster for Workbook - Cannot change the name of attachment file.

    Dear All Experts,
    I am using the BEx Broadcaster to distribute report of workbook via email. The name of attchament file in email is the technical of workbook. I want change the name of attchment file and found this thread
    [Broadcasting Workbook - Change attachment filename|Broadcasting Workbook - Change attachment filename] that reference to method in background process. Can I create customize program or method to change the name of file.
    Thank you and really appreciate your help.
    Zilla D.

    Hello Zilla,
    By SAP methods, this is not possible. There is no way to do that. May you can suggest it on our Community of Innovation. See note 11.
    This is not only your concern. Some customers already request this functionallity.
    Best Regards,
    Edward John

  • How do I change the name and cover of a ebook in ibooks for mac?

    I have iBooks on my macbook pro and would like to change the name and cover of some epub books I dowloaded.  How do I go about doing this, if there a get info like in itunes that I just can't find?

    Try Calibre for Mac, available on macupdate.com. It's clunky to have to use 3rd party software, but until Apple fixes the abomination that is iBooks, that's what we'll have to do.

  • I have changed the name and password for my Time Capsule and now the Time Machine will not connect

    Mac Book Pro
    1TB Time Capsule.
    Yesterday I changed the name and password on my time capsule and also the name and password of the wifi network as I was having problems with the speed of the internet when using Safari on any of my devices (1 Macbook pro, 1 macbook air, 27" iMac, iPhone and iPad) all other internet services were working fine (email etc.) This seems to have solved the problem.
    However, since then, my time machine back ups will not reconnect and there is no option for me to reconnect to the existing back up for my macbook pro.
    When I enter the time machine preferences it shows as below that there are no back ups.
    Then, when I go to select a drive to use which should be the MacBook under the Backup disks the only option is for me to Remove Disk...
    So, my question is, how do I reconnect to an existing Time Machine back up for my MacBook pro as I really do not want to erase and start all over again.
    Warning - In my naiveté, I did click on the MacBook in 'Available Disks' but I got the impression that it was about to start a whole new back up and not work with the existing one.
    (And does anybody have an inkling as to why there was a problem with Safari on all my devices? I downloaded Google Chrome and that worked fine).

    Simply reset the Time Machine.
    See A4 here http://pondini.org/TM/Troubleshooting.html
    You can then mount the TC disk in finder after you reboot the computer.
    You should be able to reselect the TC disk and then it will say it is going to start a new backup.
    Ignore this.. when the TM actually loads the TC disk it will discover the existing backup and continue the backup.. but it will give no hint until it actually starts that it won't start a new backup. you just have to believe it won't.. and mostly it works..
    Please also install the widget A1 so you have some idea what TM is doing.

  • I want to change the name and password of the administrator on my macbook pro

    I want to pass on my Macbook pro to the next generation so I want some help please to change the name and the password of the administrator.

    Giving away / Selling your Mac / Resetting  the computer to the factory condition
    http://support.apple.com/kb/HT5189
    http://www.thesafemac.com/how-to-prepare-your-mac-for-sale/

  • Changing the name and path of Targets, Exec, Products, etc

    I want to change the name and path of the Products, Targets, and Executables, but the text box in the 'info' window won't let me edit, and the choose buttom is grayed out.
    Any ideas?

    I just did this yesterday... and it's fairly confusing trying to figure out what all to change.
    You can change the name of your target and executable by selecting them in the "Groups & Files" list and then selecting "File -> Rename" from the menubar.
    It appears as if you can also select your Product and rename it in this way too... but (in my case) doing that didn't seem to actually rename the final app that's produced.
    In order to rename the actual final application I believe you must select your target click the "Info" button... in the Info window select the "Build" tab. Scroll down until you find the "Product" entry. Double-click that and change it's name. Note that you may need to change the product name for each of your build configurations (ie Debug & Release).
    Steve

  • HOW TO CREATE SEVERAL folder for the generation and READING FILE

    HOW TO CREATE SEVERAL folder for the generation and READING FILE WITH THE COMMAND utl_File.
    please give an example to create 3 folders or directories ...
    I appreciate your attention ...
    Reynel Martinez Salazar

    I hope this link help you.
    [http://www.adp-gmbh.ch/ora/sql/create_directory.html]
    create or replace directory exp_dir as '/tmp';
    grant read, write on directory exp_dir to eygle;
    SQL> create or replace directory UTL_FILE_DIR as '/opt/oracle/utl_file';
    Directory created.
    SQL> declare
      2    fhandle utl_file.file_type;
      3  begin
      4    fhandle := utl_file.fopen('UTL_FILE_DIR', 'example.txt', 'w');
      5    utl_file.put_line(fhandle , 'eygle test write one');
      6    utl_file.put_line(fhandle , 'eygle test write two');
      7    utl_file.fclose(fhandle);
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    SQL> !
    [oracle@jumper 9.2.0]$ more /opt/oracle/utl_file/example.txt
    eygle test write one
    eygle test write two
    [oracle@jumper 9.2.0]$
    SQL> declare
      2    fhandle   utl_file.file_type;
      3    fp_buffer varchar2(4000);
      4  begin
      5    fhandle := utl_file.fopen ('UTL_FILE_DIR','example.txt', 'R');
      6 
      7    utl_file.get_line (fhandle , fp_buffer );
      8    dbms_output.put_line(fp_buffer );
      9    utl_file.get_line (fhandle , fp_buffer );
    10    dbms_output.put_line(fp_buffer );
    11    utl_file.fclose(fhandle);
    12  end;
    13  /
    eygle test write one
    eygle test write two
    PL/SQL procedure successfully completed.
    SQL> select * from dba_directories;
    OWNER                          DIRECTORY_NAME                 DIRECTORY_PATH
    SYS                            UTL_FILE_DIR                   /opt/oracle/utl_file
    SYS                            BDUMP_DIR                      /opt/oracle/admin/conner/bdump
    SYS                            EXP_DIR                        /opt/oracle/utl_file
    SQL> drop directory exp_dir;
    Directory dropped
    SQL> select * from dba_directories;
    OWNER                          DIRECTORY_NAME                 DIRECTORY_PATH
    SYS                            UTL_FILE_DIR                   /opt/oracle/utl_file
    SYS                            BDUMP_DIR                      /opt/oracle/admin/conner/bdumpRegards salim.
    Edited by: Salim Chelabi on Apr 4, 2009 4:33 PM

  • Upgraded computers - how do I remind Logic where the SFX and Instrument files are?

    I just upgraded computers - how do I remind Logic where the SFX and Instrument files are located? On my old computer it was set up on an external drive, on this computer it's all internal, but how and where do I create the paths?
    Thank you!

    thanks Finatarry. when navigating to the "please write your question here" page I went through a Fire fox or thunderbird choise but that does not seem to have been fowarded to you - from what I read above here on the thread. my appologies. an answer I have stumbled upon is at Preferences-Accounts -ServerOptions- does this folder browsed to via the button also keep mthe profiles there?- and thanks again

  • Trying to change the name of 1 file

    I have searched the topic and have not found a solution that works for me,
    I am trying to write an AppleScript that will change the name of a single file from path:old.txt to path:new.txt
    I have tried
    tell application "Finder"
    set name of file "work.txt" to PartA & PartG & ticker & ".txt"
    end tell
    among others and always either receive an error message, access denied or unable to set old file name to new file name

    You're missing the point.
    set name of file "work.txt" to PartA & PartG & ticker & ".txt"
    When you set the name of the file, the Finder needs two things - the original file that you're trying to rename, and the new name you want it to take.
    In your revised script you're specifying the existing name (not path) of the file you want to change, and specifying its path along with the new name. That's the wrong way around.
    Think of this command in the following manner:
    set name of (original file specification) to (new file name)
    Now, in the case of the 'original file specification' you need to provide enough information for the Finder to identify the file. You're just saying 'work.txt', but that is not enough (and that's why it's complaining). There could be a hundred 'work.txt' files spread around in different directories on your disk. How is the Finder supposed to know which one you want to change?
    A better format would be:
    tell application "Finder"
      set name of (file "work.txt" of path to desktop) to "ABC.txt"
    end tell
    In this way the Finder can absolutely identify which file you want to change (the file 'work.txt' that's on your desktop) and the new name you want it to take.
    Now, if the file is not on your desktop you can amend the script to include the relevant path, e.g.:
    tell application "Finder"
      set name of (file "work.txt" of folder "blah" of disk "disk name") to "ABC.txt"
    end tell
    This tells the Finder to look in the folder 'blah' on the specified disk.
    You can also do this by including the path to the file in the form:
    tell application "Finder"
      set name of (file "disk name:blah:work.txt) to "ABC.txt"
    end tell
    where you use : to delimit each folder in the path.
    Hope that helps.

  • How do I change the name and author of the book I have downloaded?

    I have bought and downloaded a book which has turned up in my library with the title Dokument1 and the author as Pero - to say the least, not correct.  How can I change the name so I know what it actually is and who actually wrote it?  Gotta say - I'm new to Digital Editions and so far I am completely unwhelmed.  Mobipocket is 5000 times better.  Seriously.

    I also have the same problem, it's very annoying. It seems to me that nothing can be done about it.

  • How to change the name and description of a wim using DISM

    With Imagex we could update the name and description of the wim with on easy command:
    imagex /info img_file [img_number or
    img_name] [new_name] [new_desc]
    e.g.
    imagex /info Win7Combined.WIM 1 "Win7(x86)" "Windows 7 x86"
    Since the ImageX tool is deprecated in Windows 8 and has been replaced with DISM, can someone explain how to update the name and description with one easy command using DISM like we could with Imagex?

    It looks like this person had the same issue. Have you seen this
    link
    It talks about exporting an Index into a new WIM. Which, in a way, would be renaming it. It's really recreating it and you have to give it a name. But it seems to work.
    Dustin Estes - MCP | www.dustinestes.com

  • How to change the Name and/or Alias of a Public Folder Mailbox in Exchange 2013

    So when I migrated our servers from 2010 to 2013. I did not plan well and ended up with this.
    Name                      Alias
    Mailbox1                  PF1
    Mailbox2                  Mailbox2
    Mailbox3                  Mailbox3
    As you can see the first mailbox is named PF1. I want to be able to change both the name and the alias, but have failed to find mechanism for doing so in ecp or powershell. Any assistance is greatly appreciated. I would also like to change the email address
    for these as right now they are [email protected], [email protected], [email protected]
    Thank you very much

    Set-Mailbox -Identity Mailbox1 -PublicFolder -Name NewName1 -Alias NewName1 -PrimarySMTPAddress [email protected]
    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

Maybe you are looking for

  • ICal wont sync due to inconsistent data

    I get an error message saying... Calendars could not be synced due to inconsistent date. Confirm that your computers data is valid *+(not sure how to do this)+* then reset Calendars on .Mac in system preferences. *+( I have done this and had no luck)

  • Vista + Acrobat 9.0 standard = crash when opening 1 doc.

    I run a small network of 13 users. Everyone is on Vista and all but 1 has Acrobat 8.0. The only guy who has 9.0 is having a weird issue where he can only open a single PDF at a time. If he opens up a second, Adobe crashes. If he opens Adobe (without

  • Error: java.sql.SQLException; must be caught or declared to be thrown.

    in a servlet, I have a class like: class mydb public static Connection conn; public static void init() throws SQLException // Load the Oracle JDBC driver DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver()); conn = DriverManager.getCon

  • Changing Justification at runtime

    Is it possible to change justification of report at runtime. If Yes? Please provide me info. Thanks in Adv. Shareef

  • INoficatorService  implementation not found

    Hi all, I need to send a notification mail from my code but i have not been able to get the implementation class for INoficatorService so that i may call its send() method. Could u pls help me on this. regards saurav