Modify contents of .htm file

I have a .htm file that contains hundreds of links. If I hover the mouse over each link I can see the contents of that link. I want to change a constant in each for these links from "aaa" to "bbb". Is there a way to do this? What tool would I use to perform this? Thanks, Mark

Note: This thread was originally posted in the [Conventional & Interruptable IO|http://forums.sun.com/forum.jspa?forumID=535] forum, but moved to this forum for closer topic alignment.

Similar Messages

  • View then modify content of xml file.

    I am new in Java world and my background is database admin. What I am trying to achieve here is write a small java scripts code which would open connections.xml allow user to update connection definition.
    So here is what I do using java scripts, I load the connections.xml:
    xmlDoc.load("connections.xml");
    Then I disply the current conection def:
    var x=xmlDoc.getElementsByTagName("StringRefAddr");
    for (var i=0;i<x.length;i++)
    document.write("<tr>");
    document.write("<td>");
    document.write(x.getElementsByTagName("Contents")[0].childNodes[0].nodeValue);
    document.write("</td>");
    document.write("</table>");
    But this only displays the content of connections.xml.
    What is the code to allow user to actually modify what he or she is seeing displayed?
    If java scripts is not the appropriate way to do this then please advise on how to do this the simplest way possible.
    Please advise.
    Thanks.
    Bobby.

    So you're reading in this XML document and extracting some bits to display to the user? And then when the user changes those bits and says OK you are going to write out a modified XML document?
    Actually, never mind. Figure out what you are going to do and start doing it. Then when you run into a problem, post a specific question about that problem. It appears your question is actually "I don't know what I should do" and it isn't possible to answer that on a forum.

  • Modify content of wsdl file

    I saw from some threads where problem with wsdl file importing is solved by deleting some parts of the wsdl.
    Is that safe to do that? Why the format of 'request' or 'response' file changed from the one defined by web services (original wsdl), it could still work? I have doubt about that.
    Please advise

    Hi Rokie !
    It all depends on what are you exactly modifying or deleting in the WSDL file. Sometimes, there are declarations that are not fully compatible with XI. If you don't make structural changes, it may still work. For example, if the WDSL request has an optional field, and its declaration is giving any kind of error while importing in XI, you could try to remove that declaration in WSDL and try that way to debug.
    Regards,
    Matias.

  • Modifying the contents of text file ini j2me

    Hi,
    I'm developing a application in j2me wherein i need to erase the previous stored contents fromthe text file and store new content submitted thru the front end program. Kindly please suggest me how to proceed in this regard.
    Thanks

    If you want to change an ini file in the jar file: you can't do that.
    You can however store the changes in the RMS.

  • Why did my index.htm file generate blank? and other weirdness.

    Here's the story. Maybe someone can tell me where I made my mistake, or what happened. I'm numbering the steps for convenience in discussing this.
    1) I started a new project, a WebHelp project.
    2) I imported content in Word.
    3) I created an index, glossary, and TOC. I used wizards for some of this.
    4) I created a style sheet and applied it to all the topics.
    5) I added a skin from the gallery.
    6) I generated output.
    Then I sent that output to the UI developer on my project. He plugged it in to the web app, and it seemed to work fine. So then:
    7) I opened the project, edited the text, and removed glossary links (because I didn't like how they were working) individually.
    8) I generated a new TOC to match the changed topic structure (minor changes).
    9) I generated another output.
    I sent that output to the UI developer and he said it was blank. I opened index.htm and sure enough, it was indeed blank. In fact, it was Zero KB. I also noticed that four other files were blank: whfform.htm, whform.js, whskin_plist.htm, and whtbar.js.
    So then I decided to start over. I created a new project, imported just the html topic files from the old project, redid the index (in a  hasty and less thorough manner), decided to bail on the glossary for now, did a TOC and sent that to the developer.
    Now the Search pane is totally wonky, showing a list of characters and terms.
    So I am getting frustrated. The developer has tried monkeying around with stuff on his end, but it's not working. So he says, why don't you send me a build with everything?
    The problem is, I have two broken builds. The first one, which for whatever reason has the blank index.htm file (and other blank files), and the second one, which has no glossary, a messy index, and a screwed up search.
    I can't seem to find anyone else having this problem. :-/  Can someone help? 
    Thanks so much,
    Tamarleigh

    I am having the exact same problem, and I think I've figured out what is happening here. There is an issue when mapping Word styles into RH. The person who setup our Word template included a sidehead with conditional text to hide instructor notes when printing participant training manuals. I removed the conditional text, and everything is working fine. You may want to double check to make sure you don't have conditional text in your Word docs. I've uploaded an image with the code below to show how the conditional text looked when the document was linked and generated.
    Check out the code below:
    <table cellspacing="0">
              <tr>
                        <td style="vertical-align: top; padding-left: 0px; padding-top: 0px;
                                   padding-right: 0px; padding-bottom: 0px;" height="800" width="114"><table
                                   cellspacing="0" width="100%">
                                  <tr>
                                            <td style="padding-left: 0px; padding-top: 0px; padding-right: 0px;
                                                       padding-bottom: 0px;"><div v:shape="Text_x0020_Box_x0020_146"
                                                                                                                             class="shape" style="padding: 3.6pt 7.2pt 3.6pt 7.2pt;">
                                                      <p class="WD_InstructorNotesHeading"><span style="background: #ffff00;">Instructor
                                                       Notes:</span></p>
                                                      <p class="WD_InstructorNotesText"><span style="background: #ffff00;">Add
                                                       any additional instructor information into this text
                                                       box.&#160;&#160;It will only appear when hidden text
                                                       is turned on.</span></p>
                                                      <p class="WD_InstructorNotesText">&#160;</p>
                                            </div></td>
                                  </tr>
                        </table>
                        &#160;</td>
              </tr>
    </table>
    Cheers.

  • Renaming the index.htm file

    Folks - I welcome some help on this one!
    I'm running RoboHelp 9, and authoring a help system for a dev group whose buildmeister has requested I rename (if possible) RoboHelp's compiled 'index.htm' file to something else, so as not to conflict with another index.htm file that apparently is part of this software build. I'm assuming this can't be done as a simple File Explorer 'rename', but needs to be defined within the project prior to compiling fresh output. However, I can't find a setting for to accomplish this, and, frankly, don't even know if it's necessary (or possible).
    best,
    Lumpy

    Hello again, Lumpy
    In looking at this thread the following thought occurs to me. If your developer is wanting you to rename your start page, it likely means that your WebHelp is just plopped in with other content. And if that's the case, I'd have to think things are severely disorganized. Normally the help sits in its own folder that is separate from whatever application it supports.
    I know that often developers suffer the God complex and don;t fathom any possibility they are wrong, but it might be worth asking some questions about the arrangement.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • How to display the content from a file  stored in database

    when i am trying to display the content from a file which stored in database on oracle report 10g
    data are displaying as following. please help me to display the data in readable format
    <HTML LANG="en-US" DIR="LTR">
    <!-- Generated: 1/11/2006, postxslt.pl [1012] v1
    Source: amsug304286.xml
    File: amsug304286.htm
    Context: nil
    Tiers: ALWAYS
    Pretrans: YES
    Label: Release 12 -->
    <HEAD>
    <!-- $Header: amsug304286.htm 120.4 2006/11/01 20:57:29 appldev noship $ -->
    <!--BOLOC ug1_OMPO1010302_TTL--><TITLE>Product Overview (ORACLE MARKETING)</TITLE><!--EOLOC ug1_OMPO1010302_TTL-->
    <LINK REL="stylesheet" HREF="../fnd/iHelp.css">
    </HEAD>
    <BODY BGCOLOR="#F8F8F8">
    <A NAME="T304286"></A><A NAME="ProdOve"></A>
    <CENTER><H2><!--BOLOC ug1_OMPO1010302--><B>Product Overview</B><!--EOLOC ug1_OMPO1010302--></H2></CENTER>
    <p><!--BOLOC ug1_OMPO1010304-->Oracle Marketing drives profit, not just responses, by intelligently marketing to the total customer/prospect base. By leveraging a single repository of customer information, you can better target and personalize your campaigns, and refine them in real time with powerful analytical tools.<!--EOLOC ug1_OMPO1010304--></p>
    <p><!--BOLOC ug1_OMPO1006611-->With tools necessary to automate the planning, budgeting, execution, and tracking of your marketing initiatives, Oracle Marketing provides you with:<!--EOLOC ug1_OMPO1006611--></p>
    <ul>
    <li>
    <p><!--BOLOC ug1_OMPO1006612--><B>Customer Insight</B> - With sophisticated customer management and list generation, Oracle Marketing enables you to quickly generate target lists and segments using an intuitive user interface. The easy to use Natural Query Language Builder (NLQB) lets you query for customers or prospects using a natural language while hiding data complexity; fatigue management ensures that you do not over-contact the same customers with marketing messages; and predictive analytics helps you predict customer behavior that you can leverage to produce significant increases in marketing return on investments (ROI).<!--EOLOC ug1_OMPO1006612--></p>
    </li>
    <li>
    ls.<!--EOLOC ug1_OMPO1010304--></p>
    <p><!--BOLOC ug1_OMPO1006611-->With tools necessary to automate the planning, budgeting, execution, and tracking of your marketing initiatives, Oracle Marketing provides you with:<!--EOLOC ug1_OMPO1006611--></p>
    <ul>
    <li>
    <p><!--BOLOC ug1_OMPO1006612--><B>Customer Insight</B> - With sophisticated customer management and list generation, Oracle Marketing enables you to quickly generate target lists and segments using an intuitive user interface. The easy to use Natural Query Language Builder (NLQB) lets you query for customers or prospects using a natural language while hiding data complexity; fatigue management ensures that you do not over-contact the same customers with marketing messages; and predictive analytics helps you predict customer behavior that you can leverage to produce significant increases in marketing return on investments (ROI).<!--EOLOC ug1_OMPO1006612--></p>
    </li>
    <li>
    <p><!--BOLOC ug1_OMPO1006613--><B>Sales Alignment</B> - Oracle Marketing's leads management helps you compile and distribute viable leads so that sales professionals can follow up valuable opportunities and not just contact interactions. Additionally, support for distributing proposals and marketing material drive speedy and consistent setups and collaboration of best practices.<!--EOLOC ug1_OMPO1006613--></p>
    </li>
    <li>
    <p><!--BOLOC ug1_OMPO1006614--><B>Marketing Insight</B> - While Oracle Marketing Home page reports and Daily Business Intelligence (DBI) for Marketing and Sales provide aggregated management level information in almost real time, operational metrics help in tracking the effectiveness of individual marketing activities.<!--EOLOC ug1_OMPO1006614--></p>
    </li></ul>
    </BODY>
    </HTML>
    <!-- Q6z5Ntkiuhw&JhsLdhtX.cg&Zp4q0b3A9f.&RQwJ4twK3pA (signum appsdocopis 1162406236 2673 Wed Nov 1 10:37:16 2006) -->

    Hi,
    you can try to use the:
    <b>ConsumerTreeListPreview</b>
    layout for KM navigation ivew (or customize to your own).
    This layout shows a folder tree on the left, a document list on the right. When you click on a document from the list it shows the contents of the file on the bottom of the iview.
    Hope this helps,
    Romano

  • Why is the HTM file of a page saved in FF also being deleted, if one deletes the subfolder with the corresponding files?

    Alright, let me explain: When I'm saving a web page in FF, this will create a .HTM file as well as a subdirectory with matching filename plus suffix "-Dateien" (German version - I'd guess in the English version it would probably be "-files" or maybe "-data" instead...). Anyway, now if I delete that subdirectory (including all its content) with the Windows Explorer (I'm still using XP, btw), it'll also delete the corresponding .HTM file in the parent directory. Question is: Why/how does it do that? Could that be some hard or symbolic link phenomenon that escapes me?
    Greetings from Munich & thanks in advance!
    Manfred

    That is a Windows feature called connected files that connects the main file and the folder with the other files for certain file operations and HTML files among others.<br />
    If you delete one of them then the other is deleted automatically (the same for Copy).
    *http://msdn.microsoft.com/en-us/library/windows/desktop/bb776887%28v=vs.85%29.aspx
    *http://www.microsoft.com/mspress/books/sampchap/6232.aspx
    You can use the registry editor (regedit.exe) to create a NoFileFolderConnection key of type REG DWORD and set the value to 0x01 to disable this "Manipulate connected files as a unit" feature.
    *HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\NoFileFolderConnection: REG_DWORD 0x01
    Change the value to 0x00 to re enable.
    See also "Operations on an HTML file or folder apply to similarly named folder or HTML file":
    *http://support.microsoft.com/kb/252721

  • Getting the page content as pdf file

    Hi All,
    I have a use case like i need to get the page content as pdf file.
    For this i found xsl file and it's config under the following locations
    /libs/cq/config/rewriter/pdf/transformer-xslt --config of source
    /libs/wcm/core/content/pdf/page2fo.xsl -- xsl file location
    For custamising this functionality i copied both confing node and xsl file under "/apps" .In the Config file i changed source to refer xsl file under /apps.But it's not taking config changes.
    I have looked into http://cqblueprints.com/xwiki/bin/view/CQ+FAQ/How+can+I+configure+the+ PDF+rewriter
    there it's saying like we need to modify the com.day.cq.rewriter.xml.XSLTTransformer class. i am not getting how to modify it.
    I need this urgently
    Thanks,
    Chinna Yadlapalli.

    This script:
    http://indesignsecrets.com/zanelli-releases-multipageimporter-for-importing-both -pdf-and-indd-files.php
    answers all your questions.
    Peter

  • Cannot publish new .htm file with Contribute

    A client of mine is having an issue with a webpage he
    maintains daily using the Contribute package, and one major problem
    has come up while trying to add new features to his presentation.
    Instead of linking directly to a file as has been done in the past,
    his primary web designer has created a new pop-up style (on demand)
    window that presents video in one portion and an advertisement in
    the rest. Unfortunately, this option did not come with an
    associated template - he merely configured the page to link to a
    .txt file as Contribute would not let the user (Administrator)
    upload a new .htm file.
    My question if anyone might have a few moments to respond, is
    whether or not this is a feasible thing to manage? .txt files work
    in Internet Explorer browsers, but fail on more standards compliant
    options such as Firefox or Apple's Safari (3.0 beta tested on PC,
    other versions tested on MacOS X) in which case they merely result
    in the presentation of a plaintext file in a pop-up window.
    Can a new template be created in Contribute, and files
    generated from this? Is this a technical quick-fix situation, or a
    more involved problem that requires Dreamweaver or other template
    creation options?
    Sorry to be rather vague on this one, it's a particularly
    complex situation (with a bit of a time crunch) on the user end,
    and I'm hoping to track down any information I can.
    - J. Johnston

    Sorry about being rather vague there, I had the client
    sitting with his head literally peeking over my shoulder and that
    made things a little trickier to actually parse a few times in my
    own head before posting.
    I went through and learned a bit about roles yesterday when I
    was trying to tackle this issue, so what you're suggesting does
    sound like what I tried to do. However, there were two issues that
    I ran into that remained a problem. First, I couldn't tell what
    role his Contribute was configured to use on his website. It
    appeared to be Administrator, and the one user account set up in
    the roles listing is his, but even with this set, I still got the
    error message saying I didn't have permission to create new .htm,
    .html, .php, etc. pages on the site.
    His website was initially created by a rather poor designer,
    whose idea when confronted with being unable to upload .htm files,
    was to use the .txt extension - because "Internet Explorer treats
    .txt as HTML, so what's the loss?"
    The essence of what the client is trying to accomplish, is
    this: He produces video content for a local news website, and
    uploads a handful of videos every weeknight. In the past, his
    webpage has simply offered a link where users clicked on an image
    and immediately downloaded a .wvx file which loaded up Windows
    Media Player (or Quicktime with Flip4Mac installed) and played his
    playlist of advertisements and news content. His new method
    involves clicking a link, which pops up a new window, which plays
    the video file embedded with an advertisement next to it in a
    table. These pop-up pages are the ones that don't seem to want to
    transfer up through Contribute.
    I hope this clarifies things a little, and I really
    appreciate your help.

  • RoboHelp HTML 9.0.2.271 crashes when opening .htm files

    Hello. I'm using RoboHelp HTML 9.0.2.271. When opening a certain RH project (I have three that I access regularly), the project opens fine, but when I try to open any of the topic files, RH hangs/crashes. I can perform any other tasks in the project (generating, publishing, updating the browse sequence, etc.), but I can't open any .htm files. In trying to fix this problem, I have:
    Updated from 9.0 to first 9.0.1 then 9.0.2
    Renamed the .cpd file
    Imported one of the topics in the crashing project to a project that isn't crashing
    Updating and renaming the .cpd file didn't work and importing the topic into a healthy project allowed the topic to open (so the topic doesn't seem corrupt).

    Also using 9.0.2.271, I had exactly the same problem: open project, double-click a topic in the Topic List pane... crash.
    However, immediately after opening the project I had Windows 7's blue 'busy' doughnut symbol constantly flashing under the mouse pointer. This is described (for RH8) in Peter Grainge's description on his excellent website (RoboHelp > Opening RoboHelp Projects). The same topic mentions the .hhp file, so I checked the contents of mine...
    At the very end, in the [MERGE FILES] section, it listed two other .chm files; one which was supposed to be there, and one which was not (Dummy.chm). I had merged Dummy.chm only during the early testing stages of my project, and had long since removed all references to it from my project. I have no idea why it was still listed in the .hhp file.
    I deleted the reference to Dummy.chm from the .hhp file and regenerated the project... and Dummy.chm reappeared in the .hhp file!  After deep-searching my project files using NotePad++, one remaining reference to Dummy.chm was also listed in the .xpj file:
      <file>
       <name>Dummy.chm</name>
       <comments></comments>
      </file>
    So I manually removed those lines and saved the .xpj using NotePad++, reopened the project using RoboHelp, and regenerated. The rogue reference to Dummy.chm is now gone. I have opened, saved, and closed the project several times and it now seems to be reliable.
    Probable cause of bug: I had recently performed a cleanup of my project folder and deleted Dummy.chm, but unknown to me I suspect RoboHelp was still looking for it when opening the project, hence the permanent 'busy' doughnut and the crash when trying to do anything else, like opening a topic.

  • Read data out of htm-file

    dear guys
    i got the problem that i want to get some data out of a htm-file. that is why i have to choose a format that is more "universal" than an excel-file
    the problem is i got a excel-file and save it as htm/html - file because i got a excel-book with more than 20 linked spreadsheets in it and there is
    no other format in excel that can handle this linking by being universal enough to start my program on some other pc's
    so i dont want to manage it in excel because there are usually some version-conflicts using the original program of the project i am working on.
    so is it basically possible to get data out of a htm-file and if the answer is yes how....??

    Tobias,
    there could be several ways to solve your request.
    As far as i understand you like to create an offline analysis of your data. Datasource is excel.
    If you can switch to "online analysis", you could use ActiveX to fetch data from excel and perharps write results back to it from LV.
    If you stay offline, you have to choose a mechanic which works out for you. Since it seems to me that the file format is kind of given, you have to go through the analysis regardless of its effort (which can get very ugly....).
    In any case, you can view a file as a stream of data. The only question is how this stream looks like. This defines how you have to interpret the stream. ASCII-files can be interpreted very easy since you can use all the nice stringfunction (search and so on). Disadvantage is that these mechanics are slow. Binary files are faster, but you have to know very good how the file was created.
    Again, in any case, you have to know where the data are....
    So i fear that you have to go the whole way and analyse the files to know where to search for your content.....
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • How to get the content of text file to write in JTextArea?

    Hello,
    I have text area and File chooser..
    i wanna the content of choosed file to be written into text area..
    I have this code:
    import java.awt.Container;
    import java.awt.FlowLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.io.File;
    import javax.swing.JButton;
    import javax.swing.JFileChooser;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.*;
    public class Test_Stemmer extends JFrame {
    public Test_Stemmer() {
    super("Arabic Stemmer..");
    setSize(350, 470);
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    setResizable(false);
    Container c = getContentPane();
    c.setLayout(new FlowLayout());
    JButton openButton = new JButton("Open");
    JButton saveButton = new JButton("Save");
    JButton dirButton = new JButton("Pick Dir");
    JTextArea ta=new JTextArea("File will be written here", 10, 25);
    JTextArea ta2=new JTextArea("Stemmed File will be written here", 10, 25);
    final JLabel statusbar =
                  new JLabel("Output of your selection will go here");
    // Create a file chooser that opens up as an Open dialog
    openButton.addActionListener(new ActionListener() {
       public void actionPerformed(ActionEvent ae) {
         JFileChooser chooser = new JFileChooser();
         chooser.setMultiSelectionEnabled(true);
         int option = chooser.showOpenDialog(Test_Stemmer.this);
         if (option == JFileChooser.APPROVE_OPTION) {
           File[] sf = chooser.getSelectedFiles();
           String filelist = "nothing";
           if (sf.length > 0) filelist = sf[0].getName();
           for (int i = 1; i < sf.length; i++) {
             filelist += ", " + sf.getName();
    statusbar.setText("You chose " + filelist);
    else {
    statusbar.setText("You canceled.");
    // Create a file chooser that opens up as a Save dialog
    saveButton.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent ae) {
    JFileChooser chooser = new JFileChooser();
    int option = chooser.showSaveDialog(Test_Stemmer.this);
    if (option == JFileChooser.APPROVE_OPTION) {
    statusbar.setText("You saved " + ((chooser.getSelectedFile()!=null)?
    chooser.getSelectedFile().getName():"nothing"));
    else {
    statusbar.setText("You canceled.");
    // Create a file chooser that allows you to pick a directory
    // rather than a file
    dirButton.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent ae) {
    JFileChooser chooser = new JFileChooser();
    chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
    int option = chooser.showOpenDialog(Test_Stemmer.this);
    if (option == JFileChooser.APPROVE_OPTION) {
    statusbar.setText("You opened " + ((chooser.getSelectedFile()!=null)?
    chooser.getSelectedFile().getName():"nothing"));
    else {
    statusbar.setText("You canceled.");
    c.add(openButton);
    c.add(saveButton);
    c.add(dirButton);
    c.add(statusbar);
    c.add(ta);
    c.add(ta2);
    public static void main(String args[]) {
    Test_Stemmer sfc = new Test_Stemmer();
    sfc.setVisible(true);
    }could you please help me, and tell me what to add or to modify,,
    Thank you..                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    realahmed8 wrote:
    thanks masijade,
    i have filter the file chooser for only text files,
    but i still don't know how to use FileReader to put text file content to the text area (ta) ..
    please tell me how and where to use it..How? -- See the IO Tutorials on Sun for the FileReader (and I assume you know how to call setText and append in the JTextArea).
    Where? -- In the actionPerformed method (better would be a separate thread that is triggered through the actionPerformed method, but that is probably beyond you at the moment), of course.
    Give it a try.

  • Blogs for File content conversion in File Adapter

    hi all,
    Can some one give me the links for File Content Conversion for File to File Scenario. please.
    Thanks in advance.

    Hi
    For Sender
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    /people/sap.user72/blog/2005/01/06/how-to-process-csv-data-with-xi-file-adapter
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    SAP Help for sender
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
    For Receiver:
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    SAP Help for receiver
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm

  • How to create a file and store its contents into another file?

    Hi,
    I'm having some trouble trying to create a code where I have to to create a file and store its contents into another file?
    I read the API, but I'm not certain how this file thing works.
    Here's my code so far:
    public static void main(String[] args) throws Exception
              File file = new File("tasks.txt");
              if (file.exists())
                   System.out.println("File already exists");
                   System.exit(0);
              Scanner scan = new Scanner(System.in);
              Scanner scan2 = new Scanner(System.in);
              //Scans the input line by line
              scan.useDelimiter("\\n");
              //Scans the input by tabs
              scan2.useDelimiter("\\t");
              PrintWriter outputs = new PrintWriter("newtasks.txt");
              outputs.print("ok");
              outputs.println(3);
              outputs.close();
         }

    I managed to change my text into uppercase, but how do I store the uppercase content into another file.
    -So this is what I did so far, I took a text file and modified its strings to uppercase.
    -Now I need to put those modified strings into another text file, is there a way where I can do that with my current code?
    -I already tried printwriter, but it doesn't seem to work
    public static void main(String[] args)throws IOException
              //Task[] oneHundredTasks = new Task[100];
              String uppercase;
              String combine;
              Scanner scan = null;
              FileInputStream in = null;
            FileOutputStream out = null;
            PrintWriter output = null;
            try
                 scan = new Scanner(new BufferedReader(new FileReader("tasks.txt")));
                 scan.useDelimiter("\\n");
                 scan.useDelimiter("\\t");
                while (scan.hasNext())
                     if(!scan.hasNext())
                          scan.next();
                     combine = scan.next();
                     uppercase = combine.toUpperCase();
                     System.out.println(uppercase);
            finally
                if (scan != null)
                    scan.close();
            //The program will try the input and output files
            try
                 in = new FileInputStream("tasks.txt");
                out = new FileOutputStream("newtasks.txt");
                int c;
                //The number "-1" is used to indicate that it has reached the end of the stream.
                while ((c = in.read()) != -1)
                    out.write(c);
            finally
                if (in != null)
                    in.close();
                if (out != null)
                    out.close();
         }

Maybe you are looking for

  • Error message received when downloading itunes?

    While trying to update my iPhone & iPad I was asked to download an update to iTunes.  I have tried 10 times and just keep getting an error code 2324.  Cannot find any information on it.  Does anyone know what is wrong?  Now the older version has been

  • How To Access Photoshop CS3 Crash Log

    How do I access Photoshop CS3 Crash Logs?

  • Displaying help for the application

    I have made help button in the form, and when the user clicks it, it should display the contents of a particular file. Can u guys suggest something.. thanx for ur time, sharad

  • Space between fields in a page

    Hi, I have around 5 fields in a custom page one below the other. But i am unable to figure out how to create space between those fields vertically? Any suggestions are appreciated. Thank you

  • Turning off the cover flow

    any way to turn off the cover flow on my Itouch? ..its really anoying... Alan.