Which format for my template file? INI, XML or whatever?

Hi all,
I hope this is the right place for a basic help like this. I'm really unexperienced coder.
I'm trying to create a program that allow me to create template of pre-formatted mail.
An example is:
To: sdasad
CC: sadsa
CCN: dsadsa
Dear [customer],
dsadsadsa
dsadsadsa in [date] sdsadsadsa
sadsadas our [product] dsadsa [price]
cheers mate
i'll use this template in my program to easily send mail with just editing the fields in [].
How do you suggest me to save this template? INI maybe? or XML? or there is any other format that could suite best? plain txt file maybe?
thanks
Nico

This is neither ini nor xml formatted data. Of course it is plain text, but since you are defining some templating rules, it a custom text format. You might want to use an extension like .template. If you absolutely must use something that already exists, you can look for an existing templating library for your chosen programming language, for c there is e.g. ctpl in the community repository.
Edit: For a simple bash script Trilby has the right idea.
Last edited by progandy (2014-09-30 17:53:21)

Similar Messages

  • Format of WCS template file for mac-address filtering

    I am looking for the format of the template file used for WCS Mac-address filtering.
    I need to know how the fields are delimited within the file.

    Sample csv file :
    #MAC Address,Profile Name,Interface,Description
    22:22:22:22:22:22,profile8,management,cisco
    00:00:00:00:00:01,myprofile,int1,First filter
    00:00:00:00:00:02,,management,Second filter
    00:00:00:00:00:03,,,Third filter
    Note: "MAC Address" and "Description" are mandatory fields

  • Best Format for Archiving Video Files

    I am importing old VHS and 8mm family videos for my cousin, to both burn them to DVD, and to archive the movies in case he wants to edit them later.
    I am planning on purchasing for him, a "write once," external HDD, probably firewire, (though I am open to suggestions), to put both the backup Video TS folders on, as well as the Quicktime movies themselves.
    My guess is, the best format for the QT movies would be their original DV-NTSC, but at around 13GB an hour, this can add up pretty fast.
    The h264 .mov codec looks great, takes forever to render, and it seems the file size difference to DV-NTSC is nominal at best.
    Obviously the future is some kind of HD, so these movies will never look great years from now, but I want them to be preserved for him at the best quality possible, at the smallest file size, if it will not compromise the quality too much.
    I know I can render them significantly smaller as h264 .mp4 files, or as DIVX, (which also takes a long time), but I imagine they are of significantly reduced quality that would be visible in future video editing he might do.
    If DV-NTSC is the only way to go, so be it. But if not, then any suggestions for what other format I could use to save these QT files, without visible loss of quality is greatly appreciated.

    Thanks for all the advice. And I mean everyone.
    Here is my latest dilemma.
    Though 15 years old, the original Vhs's play beautifully. Aside from some (expected) glitches in the beginning or end of some of the shots, the video has not degraded appreciably. This is great news, as my cousin wanted to make back ups before degradation begins.
    First, I captured the Vhs movies and corrected some bad color, mostly due to poor white balancing, and on the computer, they looked great in comparison. I burned DVD's and they looked terrible in comparison with the originals. Now I know I am going to lose some resolution when going to DVD, but it seemed harsh, so I ran some tests.
    I burned a DVD of the original capture, with no color correction, just the raw footage and the DVD did not look much better, so it wasn't the color correction.
    Not satisfied, I made a copy from the FCP timeline straight to Vhs, (I should note, through the ADVC-110.) This looked significantly degraded as well.
    Finally, I made a straight dub from Vhs to DVCam, figuring that had to look good, and that also looked significantly degraded, compared to the, (now looking pristine), Vhs original.
    As the original Vhs looks so good, what good would a TBC do? Or a proc amp?
    Is there some secret to capturing and exporting Vhs that I am missing? Or, will it always look significantly degraded, even straight to DVCam?
    +David Murray wrote: There is an industrial way to get good VhS copies but it is extremely expensive+
    I don't know what this is, but I am sure it is clearly out of our league, but David M., if you are still following this thread, I'm curious, would this ultra expensive method actually result in a dub that looks like the original? I am actually really shocked at how bad the straight DVCam dub looks. It really does not look much better than the color corrected, computer exported version.
    The Vhs tapes of my cousins daughter are as precious to him as anything he has.
    As they date back 15 years, he is concerned about the longevity of the tapes.
    As there are over forty hours of them, he wants them to be in an editable format, so later he or his daughter can make a highlight reel, or whatever. So thus the QT movie archive/backup on HD.
    Whether as Finalcutter said, that this drive, even if unused, and put in a cool dry safe, might not function years down the line, makes it iffy, but what other choice is there for editable versions, unless I break the QT movies up into 20 minute chunks and archive them to over a hundred DVD's instead. Perhaps that is the safest solution, though certainly time consuming.
    As failure of the HDD somewhere in the future is likely, though not certain, I am still not sure that the HDD holding all his QT movies for future editing is the wrong way to go.
    As it is a digital version, and not an analog copy, I get that a DVCam backup of the originals is the best option. I will suggest to him that we do this as well, even though he does not have DVCam himself. But again, is there something I am missing here? Why does the Vhs to DVCam copy look so degraded? Is there anything I can do to keep the original quality, or will it die with his original Vhs as it slowly degrades over time?

  • Getting correct field length when creating formats for delimited flat files

    Using Data Services 3.2 to pull in tsv and Excel source files.
    When creating a new format for each file, DS tries to intelligently set the field size for each column. However, it seems to sample only a portion of the file. The end result is that it often determines too short a length for a field.
    Is there a way to force it to scan an entire file before it sets the field length? Or alternatively, how to get it to at least throw an error instead of silently truncating my data?

    I am not aware of any way to force DS to scan the whole file, or to log a warning when it truncates.  The field sizes DS sets by using a sample of the data is only really to give you a starting point, you need to try and determine the maximum possible lengths preferably from someone who understands the source of the data or through profiling.  But the profiling method will obviously only be based on the data you have at the time of profiling, new data added to the source later could exceed the field lengths.  The way I prefer to handle this is to set all the field lengths to longer than expected, eg. varchar(999) and then use a validation transform immediately after reading the file to check for any fields that exceed the maximum allowed for the target system and send these to an error file/table.

  • Steps for performing Flat file to XML

    hey,
    does any one have steps for performing flat file (.csv) to XML conversion. how is the mapping in the design performed.
    kalyan.

    Kalyan,
    Consider my example, I have input file as csv structure and want it to convert into .xml file thats it.
    Input file
    J,24
    P,22
    I want the output file like
    <Emp_Details>
      <F1>J</F1>
      <F2>24</F2>
    </Emp_Details>
    <Emp_Details>
      <F1>P</F1>
      <F2>22</F2>
    </Emp_Details>
    I doesn't know whether the above matches exactly ur reqmt, but there is the option.
    Step 1 : Create Scenario & Business service
    http://www.flickr.com/photo_zoom.gne?id=699386732&size=o
    Step 2: Create sender & receiver comm.channel
    http://www.flickr.com/photo_zoom.gne?id=699386698&size=o
    http://www.flickr.com/photo_zoom.gne?id=699386664&size=o
    Step 3:Create all the objects in ID and cross verify below  whether u've created everything.
    http://www.flickr.com/photo_zoom.gne?id=699386690&size=o
    Step 4: Activate and run the interface.
    Your results :
    http://www.flickr.com/photo_zoom.gne?id=699386686&size=o
    Hope it helps!!!
    Best regards,
    raj.

  • URI format for shared local files

    Firefox uses this format to access shared files on a local network... file://///host/path eg file://///computername/sharename/MyDocs/filename.txt.
    This format is different from the standard form file://host/path that is used on other browsers eg Windows, Chrome.
    This means that Firefox does not give me access to shared files when I have coded the standard format URI into my local HTML documents. Why is Firefox different or non-standard.

    hello seebee, apparently file://///host/path is the standard form for a unc path:
    "That's five slashes - two for the protocol, one to indicate the root of the file system, then two more to indicate the start of the server name."
    <sub>https://stackoverflow.com/questions/5317834/workaround-for-href-file-in-firefox</sub>
    it is also explained in this bug from 2001: https://bugzilla.mozilla.org/show_bug.cgi?id=66194#c8

  • External Hard Drive  Formatting  For Cross Platform File Sharing

    I have been doing some research on formatting options that can read/write both OSX and Win7. Someone recommended that I use UDF. I'm curious hearing from the apple community whether there are any downsides to choosing this formatting method. Are there any other better ones to use? Thanks

    Best I can tell, UDF is for DVDs and CDs, not HDDs.
    If you want a compatible format for Mac and Windows on a HDD, FAT 32 or ExFAT will fit the bill.  Fat32 does have a 4 GB file size limitation.  It is best to format these on a PC.
    You can use NTFS, but then you need third party software such as Paragon or Tuxere in order to write to the HDD.
    Ciao.

  • Java code for converting EDI file to XML file

    Dear friends,
                     Can you please help me in getting the java code for converting to EDI file to XML file.

    Hi,
    You can convert the EDI file to XML in any of the ways
    1) Using third party seeburger adapters
    2) Conversion agent
    3) Stylus studio.
    I think using java code it will be very difficult.
    Thnx
    Chirag

  • Which format for external hard drive to use with time machine backup and connect to windows laptop?

    Hi!  I have an external hard drive on which I have transferred my iTunes library (just mine - not others).  I have also a folder containing just films (some but not all of which are in iTunes too)  Everything has been working just fine until yesterday I noticed that Time Machine was not including the external hard drive in back up as it wasn't formatted.  So I have moved everything back to the Mac hard drive and and ready to format the external hard drive - but understand that if I do the contents cannot be opened from a windows laptop ...  is that right?  Is there are format I could choose that would allow Time Machine to back up and allow Windows to open as well (the idea being that I take the external hard drive with me on holidays etc!!)  Many thanks for any advice. 

    ok - I understand.  I have managed so far to format the drive (on windows) to exFAT file system - which apparently works with both Windows and Mac - but you're  correct - it will not be included in time machine backup as I have checked the back up files and Samsung is not showing.  Reckon I'm onto having to buy yet another portable hard drive just for windows - or of course buy myself a new mac book!!  Can I ask you please - does the drive have to be clear of everything before I change the format - or can I change it with the files still in there?  Also, got any quick ways duplicating the files onto another External Hard drive (for use on the windows laptop)  At the moment the files are taking 2/3 hours + to copy over!  Thank you! 

  • Best format for downconverted Quicktime file?

    These are video files from a still camera that are running so slowly on my system as to make them unusable. I would like to downconvert them so I can work with them and edit in FCP. I'm in MPEG Streamclip. Initially it comes up as 1920x1080 unscaled. What is the best format to downscale to for editing? I converted some to Motion JPEG A 100% quality. Most of the files I have worked with are NTSC DV. This is the first file of this type. Thanks
    Message was edited by: editgrrl

    Googleing "Canon 5D and Final Cut Pro" is a good start. And then searching these forums for the same thing..."Canon 5D"... will bring up all the times people have asked "how do I work with Canon 5D footage in FCP?"
    The biggest issue you have is that all the answers will be related to working with the 5D in FCP 6 or 7. Which you don't have. So ProRes will be the codec that is mentioned all the time. You don't have that. You have DVCPRO HD and Uncompressed HD. Best to go with DVCPRO HD. Or you can try Apple Intermediate Codec too. I think that is part of FCP 4.5. But DVCPRO HD might be the easier bet.
    Time to upgrade, if you are going to try to keep up with the current formats. And yes, we too have to remain on the ball. How? I read these forums (and others) daily (obviously). THis way I see what people are shooting and trying to work with.
    Shane

  • File format for username/password file for -vcusersfile command line option

    In what format do I specify username and password in a file that I can use for
    the -vcusersfile command line option?

    The text file should contain name/password pairs separated by an equal sign. Example:
    myname1=password1
    myname2=password2
    Hope that helps,
    Susan Doan

  • Initializing HD, which format for mac and windows?

    Hi,
    I would like to initialize an external firewire HD to be able to use it on mac and pc.
    Should I just choose the FAT format in disk utility?
    Thanks!

    this is about as good as I could find.
    windows reads & writes ntfs, and fat32
    os x reads and writes fat32 and mac os x extended.
    os x can read ntfs (read only)
    and fat32 can't handle large files or large disks.
    spit it up and hope that no file is greater than 4gig
    unless you can find the drivers for your xp or vista, you can't read a mac os x extended disk.

  • Exporting format for best quality/file size

    Hi,
    Help!!
    Nubie to after effects, pretty much got my head round most of the basics except exporting/rendering my projects.
    I can export to Encore and get great results as a dvd...problems i have are as follows.
    If I wish to create a presentation for a plama screen running on a laptop what might be the best format to render. For example I have tried .AVI but the file sizes are huge..gigs n gigs worth!!
    I have a 720 x 576 project I would currently like to export but do not know how to get the right balance of quality and file size.
    Are there any presets anyone knows of?
    Thanks!
    Regards
    Ian

    Well, if you are referring to plain desktop playback from a Windows-based laptop, nothing beats WMV. It will play smoothly and if you ramp up the data rates to somewhere between 2 and 3 Mbit/sec, you see almost no adisturbances at this resolution. You will need to work in square pixels, though, or it may look crooked, so nest all your work in a respective comp for final render.
    Mylenium

  • Change File Format For Existing Library Files? How?

    Lightroom v5.3: I'm a long time DNG file user for Pentax and Nikon cameras. I recently discovered that about 300 of my RAW Nikon files already imported into the Library are NEF files instead of DNG files as my other 5700 files are.
    I know that I made an error somewhere along the way, but- Is there an easy solution to converting those existing NEF files to the DNG format?
    I was thinking of renaming them, but..........somehow that seems too easy.
    Thanks for any wisdom you can send my way.

    Thank You, John. That menu command went right by me when I searching the best way how to do this task.
    Appreciate your help.

  • Which Format for camcorder

    Hi, I need advice, I wish to buy a camcorder that videos in MP4 50p (up to 35 Mbps) or AVCHD (up to 28Mbps). I am wondering which Premier Elements I need to upgrade to to edit my home videos to DVD etc.  Would I be better to video in SD format, as I have done so for years now.  I have Windows Vista 32 , and currently have installed Adobe Photoshop 6 & Premier 4.

    Pattie J
    Bottom Line: If you are going to remain with Windows Vista 32 bit, then I would keep with the SD workflows using your Photoshop Elements 6 and Premiere Elements 4.
    When you go from SD to HD source (especially high resource demanding formats such as AVCHD), your computer resources are going to be compromised when it comes to the larger projects. You need to think in terms of whether or not Premiere Elements is going to be working as a 32 bit application or 64 bit application which brings with it the perk of getting a larger project taken to successful completion with a greater frequency than otherwise.
    Here are some guidelines...Premiere Elements 10, 11, and 12 are 64 bit applications running specifically on Windows 7, 8, or 8.1 64 bit. On Windows Vista 32 bit, 10, 11, and 12, if successful install, would be 32 bit applications with all the limitation of 32 bit. If you are thinking in terms of editing 50p video, then look to versions 11 or 12 (current version) with a 50p project preset and take your computer to Windows 7, 8, or 8.1 64 bit. Whatever your decision, use the free 30 day tryout from Adobe before purchase from Adobe or from an authorized reseller of the product.
    As an aside, AVCHD was not supported by Premiere Elements until version 7. Those who tried to edited AVCHD in versions other than 64 bit application and computer often had to resort to conversion of AVCHD into a less demanding format before importing it into Premiere Elements.
    If you need further details or need clarification, please do not hesitate to ask.
    Thank you.
    ATR

Maybe you are looking for

  • Complex if statement in rtf template?

    Hello, I want to build an if statement in rtf template, the idea is like: <?if:address!='' and phone!=''?> <?end if?> what's the correct way to do it if it is possible? Thanks in advance! Shichao

  • Importing VHS & 8mm tapes at highest quality?

    I've been using the VHS-to-DVD USB device to import old VHS and 8mm tapes to my Mac (using S-Video cable, then work on them in iMovie. Simple, but I'm wondering if there are alternative means with higher quality results. The mpg files I get are 640 x

  • Integration of SAP XI and none SAP tools

    Hi! I would like to start working with SAP XI. Where can I find the Step by Step case studies describing different SAP XI scenarios (IDOC/ALE, RFC, File, etc.). What is the most famous example of integration of SAP XI and none SAP tools? Are there to

  • Does installing mavricks delete the photos in iPhoto please reply fast thanks.

    im in the middle of installing mavricks after you restart your computer but I want to know if It delets your photos from iPhoto please help. And if it does how do I cancel the mavricks installation

  • Probelm in use of  - - - - AT End of  statement

    Dear Experts, types : begin of t_ZVAIQ1 ,           vbeln type vbeln,           prctr type prctr,           pfach type pfach,           fkimg1 type i,           fkimg2 type i,        end of t_ZVAIQ1. DATA : itab type standard table of t_ZVAIQ1 initia