Writing text to a file with a socket

i'm writing an applet which is suppose to write the user's input to a txt file on the server's machine.
i'm reading the information from this txt file by BufferedReader and have found out that it is not possible to use BufferedWriter to write in a similar fashion.
in postings i have seen that i need to use one of 3 methods. 1) sign my applet, 2) servlets 3) sockets.
i have choosen to use sockets, but i cannot figure out how to print the information i want to send, to the particular file.
heres the code i have.... pretty much taken straight off of this tutorial
http://java.sun.com/docs/books/tutorial/networking/sockets/readingWriting.html
Socket echoSocket = null;
PrintWriter out = null;
try {
echoSocket = new Socket(server, 8080);
out = new PrintWriter(echoSocket.getOutputStream(), true);
} catch (UnknownHostException e) {
e.printStackTrace();
System.exit(1);
} catch (IOException e) {
e.printStackTrace();
System.exit(1);
out.println("line");
out.flush();
out.close();
echoSocket.close();
i also don't think that i have the proper name of the server defined. i know that the socket connects to the server, but i don't believe it is connecting in the right position.
i.e. if the server name is "fred" and where the variable server is, i put "fred"....it connects. but, i don't have my files stored directly on fred, they are in subdirectories of "fred" and i can't figure out how i will go about changing the variable server, in order to reach these subdirectories.
i hope this isn't too confusing
thanks
Andy

do sockets need to have a server program running on the server?

Similar Messages

  • Can someone help with a previous post labeled "Writing to a data file with time stamp - Help! "

    Can someone possibly help with a previous post labeled "Writing to a data file with time stamp - Help! "
    Thanks

    whats the problem?
    Aquaphire
    ---USING LABVIEW 6.1---

  • Default text editor for files with no extension

    If I double-click on a file with a name like README, the Finder opens the file with TextEdit.app. I can easily change which editor is used if the file had an extension (e.g. if it was called README.txt or README.html), but without an extension, OS X had no way to set a preferred editor. If I open this from the terminal I can set the EDITOR environment variable, or use open -a appName, but my question is about the Finder. Thanks!

    extremely annoying. when i first switched to OS X, i had to rewite a hundred or so perl scripts for my servers... because any text file or data file or whatever, that didn't have an extension after it, would no longer open in BBEdit, like it always did in 9.2
    3 years later i'm still occasionally getting that annoying 'doh, what do i open this with' message. macs are getting dumber all the time.
    i guess apple thinks windows got it right associating the extension with the app.
    and half my 'change alls' don't stick either.

  • Sending files with Mulicast sockets

    Hi,
    I'm trying to write a multicast sender/receiver applications for windows.
    The problem I'm having is that the receiver create bigger file than the source (double or bigger).
    Chcking with debugger the sender does not send the file more than one time & file length is measured correctly.
    What am I doing wrong? Is Java multicast reliable on windows?
    Please see below my code and comment.
    Thanks,
    Alonex
    /* Multicast sender */
    import java.io.*;
    import java.net.*;
    public class Outcoming extends Thread
         int port;     //4446     
         String multicastServer="230.0.0.1";     
         MulticastSocket out;
         byte[] outBuffer;
         String username;
         String msg;
         DatagramPacket dp;
         InetAddress multicastserverIP;
         static boolean done = false;
         public Outcoming() throws IOException, UnknownHostException
              port=4446;
              username="kostas";
              out=new MulticastSocket(4446);
              out.setTimeToLive(10);
    //          out.joinGroup(InetAddress.getByName(multicastServer));          
         }/////////////////////Outcoming     
         public void run()
              while (!done)
              try {
                   multicastserverIP=InetAddress.getByName("230.0.0.1");
              catch (UnknownHostException e)     
                   System.out.println("Cannot resolve ip address");
              try {
                   System.out.println("ttl"+out.getTimeToLive());
                   out.joinGroup(multicastserverIP);
              catch (IOException e)
                   System.out.println("Failed to join group");
              boolean readMore=true;
              String line="";     
              createAndSendPacket(line);
              while (readMore)
                   System.out.print(">"); 
                   BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                   try     {
                        line=br.readLine().trim();
                   catch (IOException e)     {
                        e.printStackTrace();
                   if (line.equalsIgnoreCase("quit"))     
                        readMore=false;
                   createAndSendPacket(line);
    //     }/////////////////////run
    //     Returns the contents of the file in a byte array.
          public static byte[] getBytesFromFile(File file) throws IOException {
               InputStream is = new FileInputStream(file);
               // Get the size of the file
               long length = file.length();
               // You cannot create an array using a long type.
               // It needs to be an int type.
               // Before converting to an int type, check
               // to ensure that file is not larger than Integer.MAX_VALUE.
               if (length > Integer.MAX_VALUE) {
                    // File is too large
               // Create the byte array to hold the data
               byte[] bytes = new byte[(int)length];
               // Read in the bytes
               int offset = 0;
               int numRead = 0;
               while (offset < bytes.length
                        && (numRead=is.read(bytes, offset, bytes.length-offset)) >= 0) {
                    offset += numRead;
               // Ensure all the bytes have been read in
               if (offset < bytes.length) {
                    throw new IOException("Could not completely read file "+file.getName());
               // Close the input stream and return bytes
               is.close();
               return bytes;
         private void createAndSendPacket(String msg)
              int i,j=0,s=1;
             byte[] buf1=new byte[64000];
              try     {
                   msg=username+"#!#"+msg;
    //               byte[] buf=msg.getBytes();
                   File fileTest = new File("c:\\test.exe");
                   byte[] buf=getBytesFromFile(fileTest);
                   int size = 64000;
                   while (j<buf.length)
                        if ((s*64000)>buf.length)
                             size = buf.length-((s-1)*64000);
                             buf1 = new byte[size];
                             done=true;
                   for (i=0;i<size;i++,j++) //buf.length;i++)
                        if (j==1822845)
                             System.out.println("here");
                        buf1=buf[j];
                   if (i==size)
                        dp=new DatagramPacket(buf1, buf1.length,multicastserverIP , port);
                        out.send(dp);
                        try
                        Thread.sleep(3000);
                        catch (InterruptedException ie){}
                        System.err.println("Packet sent");
                        s++;
              catch (UnknownHostException e)
                   System.out.println("createAndSendPacket: UnknownHostException");
              catch (IOException e)
                   System.out.println("createAndSendPacket: IOException "+e.toString());
         }/////////////////////createAndSendPacket
         public static void main(String[] args) throws IOException, UnknownHostException
              new Outcoming().run();
    /* Multicast Receiver */
    import java.io.*;
    import java.net.*;
    public class Incoming extends Thread
         int port;     //4446     
         String multicastServer="230.0.0.1";
         MulticastSocket in;
         byte[] inBuffer;
         String username;
         String msg;
         InetAddress multicastserverIP;
         public Incoming()
              port=4446;
              msg="";
              try {
                   in=new MulticastSocket(port);
                   in.setTimeToLive(10);
              catch (IOException e)
                   System.out.println("Failed to create multicast socket");
         public void run()
              try {
                   multicastserverIP=InetAddress.getByName(multicastServer);
              catch (UnknownHostException e)     
              try {
                   in.joinGroup(multicastserverIP);
              catch (IOException e)
                   System.out.println("Failed to join group");
              while (!msg.trim().equalsIgnoreCase("quit"))
                   readSocket();
                   writeFromBuffer();
         private void readSocket()
              inBuffer=new byte[64000];
              DatagramPacket rcv=new DatagramPacket(inBuffer, inBuffer.length, multicastserverIP , port);
              try     {
                   in.receive(rcv);
              catch(IOException e)
                   System.err.println("Failed to receive incoming message");
         private void writeFromBuffer()
              try
              FileOutputStream fos = new FileOutputStream(new File("c:\\temp.exe"),true);
              fos.write(inBuffer);
              fos.close();
              catch(IOException ie){};
         public static void main(String[] args) throws IOException, UnknownHostException
              new Incoming().run();

    (a) Multicast isn't reliable on any platform. Datagrams may be lost, duplicated, or delivered out of order, and datagrams greater than 534 bytes are unlikely to get though routers at all even if multicasts do.
    (b) Why are you joining the multicast group every time around the loop?
    (c) You are ignoring the actual length of the received datagram, just assuming it is 64000.
    (d) In fact you are also ignoring exceptions when reading and still writing out 64000 bytes even if nothing was read at all.
    All in all you need to rethink this.

  • Writing ASCII 0x81 to file with PrintStream

    Hello
    I am trying to export textfiles to an other system (IBM AS400). But for that i need to convert some special characters. It works fine with most of the characters (i simply replace the characters in the String that i write to the File (String.replace(oldchar, newchar))
    One character gives me trouble. I need to convert the char 0xFC to 0x81. But if i try to write this character to the File (I am using PrintWriter because i want to use the println(...) method) all i get in the File is the character 0x3F.
    I tried different methods to write this char (0x81) but only if i use the OutputStream directly am I able to write 0x81 to the File.
    Here is a sample code to illustrate my problem
    public static void main(String[] args) {
            FileOutputStream fo = null;
            PrintStream p = null;
            //PrintWriter p = null; //if i use PrintWriter the problem is the same
            FileReader fi = null;
            BufferedReader d = null;
            String sampleFile = "c:\\only81.txt"; //contains 3 Lines of (char)0x81
            String outFile = "c:\\test.txt";
            try {
                fo = new FileOutputStream(outFile);
                p = new PrintStream(fo);
                fi = new FileReader(sampleFile);
                d = new BufferedReader(fi);
                p.println("Test to write ASCII 0x81 (129)");
                String temp = null;
                while ((temp = d.readLine()) != null)
                    p.println(temp);  //all stored chars are 0x3F
                for (char i = 1; i<512; i++) //char 0x80-0x9F are all
                    p.print(i);                     //stored as 0x3F (also chars>FF)
                p.flush();
                fo.write(129);     //these 4 lines actually work
                fo.write(0x81);
                fo.write((char)129);
                fo.write((char)0x81);
                d.close();
                fi.close();
                p.close();
                fo.close();
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
        }What i would really like to understand is why there is the problem with the chars 0x80-0x9F (even my IDE (Eclipse)) has problems displaying the char in its Editor)
    and how i can write 0x81 to a file (when 0x81 is part of a String)

    You are writing with the default encoding, which is UTF-8Printwriter p = new PrintWriter(new OutputStreamWriter(new FileOutputStream(outFile), "ISO-8859-1"));will not have the same problem.
    Use the same for readingBufferedReader d = new BufferedReader(new InputStreamReader(new FileInputStream(sampleFile), "ISO-8859-1"));

  • How to remove a hidden text in pdf file with Acrobat Pro 9. How to save pdf file and remove hidden text?

    I
    I made this file in indesign, the highlited empty spaces indicates that their is a hidden text and it pop up when searching for some words in pdf file. so how can I save pdf file to keep only the seen text ???

    Dear lrosenth,
    I went through some codes/suggestions in internet and I found that I need to have cmap file and cid font file for the respective font since pdf doesn't support unicode fonts directly.
    Can you help me to know where can I get cmap file and cid font file for tamil language font Latha(TrueType) microsoft font.
    Regards,
    Safiq

  • Problems writing from BLOB to File with Thin-drivers

    I'm having problems when I'm trying to put a blob to a file
    using jdbc-thin drivers(8.1.5).
    It works perfectly well with the oci-drivers but not with thin.
    When I execute the same code with the thin-drivers I get:
    Error: java.io.IOException: ORA-21560: argument 2 is null,
    invalid, or out of range
    ORA-06512: at "SYS.DBMS_LOB", line 640
    ORA-06512: at line 1
    Please help me...
    /Stefan Fgersten
    lob_loc = ((OracleResultSet)rset).getBLOB(1);
    in = lob_loc.getBinaryStream();
    FileOutputStream file =
    new FileOutputStream("d:/dir/picture.jpg");
    int c;
    while ((c = in.read()) != -1)
    file.write(c);
    file.close();
    in.close();
    null

    Has anyone managed to find a solution (other than switching drivers) for this? I too am using the 8.1.5 thin driver on an 8.1.5 database and receive the same error. Please help!!
    Nkem
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Stefan Fgersten ([email protected]):
    I'm having problems when I'm trying to put a blob to a file
    using jdbc-thin drivers(8.1.5).
    It works perfectly well with the oci-drivers but not with thin.
    When I execute the same code with the thin-drivers I get:
    Error: java.io.IOException: ORA-21560: argument 2 is null,
    invalid, or out of range
    ORA-06512: at "SYS.DBMS_LOB", line 640
    ORA-06512: at line 1
    Please help me...
    /Stefan Fgersten
    lob_loc = ((OracleResultSet)rset).getBLOB(1);
    in = lob_loc.getBinaryStream();
    FileOutputStream file =
    new FileOutputStream("d:/dir/picture.jpg");
    int c;
    while ((c = in.read()) != -1)
    file.write(c);
    file.close();
    in.close();<HR></BLOCKQUOTE>
    null

  • Editing Text in SWF file with Flash

    Hio All,
    I am a flash newbie. I have been asked to edit an existing
    site and am coming up goose eggs. What I want to do is edit the
    text in a swf movie. The movie opens up fine in flash, I can add
    and delete text, but I cannot save the darn thing. Then I went to
    the flash help section and the tutorials and they couldn't answer
    my question, either. What am I doing wrong?
    Advice is greatly appreciated.
    Kind Regards - Tami Swartz

    The Adobe Reader for SymbianOS isn't a PDF editor. You'd need Acrobat
    for that, using the Text Touch-up Tool.
    Aandi Inston

  • Writing to a data file with time stamp - Help!

    My program currently asks the user to enter a path to save the data from my virtual channels. What I want is to have a default directory to store my data in and also have the file name that is created to be the date. I tried to use create open or replace but I cant get it to work. Any suggestions would be great. Also and comments to the code would help out a lot.
    Thanks
    Attachments:
    Test.vi ‏141 KB

    Look at the attachment. It uses a front panel path control set to only select a new or existing folder (right click and Browse Options). Then, using a Build Path and a Format Date/Time String, a full path to a file is created. Pass this to your Open/Create/Replace File.
    Attachments:
    Date to File Name.vi ‏13 KB

  • Writing a Compressed AVI File in NI LabWindows/CVI with the IMAQ Vision Acquisition

    I'm still facing some problems when I try to save pictures from a GigE Vision camera into a compressed avi-file in a LabWindows/CVI application on Windows7.
    The task is to grab images from the camera with 30 fps to monitor a process, evaluate the grabbed pictures to find certain characteristics of the monitored process and save them in an avi-file to have the possibility to load and evaluate them once again Offline if necessary.
    My questions: which compression filters can I get with the NI-Imaq Vision Acquisition and Vision Development Runtime 2012 SP1? Is a mpeg4 codec available to compress quickly and effective? Can I use a third party codec or only the ones delivered with NI-Vision?
    I posted the problem two times already, but there is little response up to now. Thanks

    The encoding algorithm, or codec, that's used for compression needs to present on your system. When I had done some research on this sometime back, I found that if your custom codec could align with the DirectShow architecture, then your codec would work with IMAQ AVI functions.The codecs that are available may vary from system to system, depending on what software is currently installed. Be sure to check out this article:
    Writing a Compressed AVI File with the IMAQ Vision Acquisition Software
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • Writing a java program for generating .pdf file with the data of MS-Excel .

    Hi all,
    My object is write a java program so tht...it'll generate the .pdf file after retriving the data from MS-Excel file.
    I used POI HSSF to read the data from MS-Excel and used iText to generate .pdf file:
    My Program is:
    * Created on Apr 13, 2005
    * TODO To change the template for this generated file go to
    * Window - Preferences - Java - Code Style - Code Templates
    package forums;
    import java.io.*;
    import java.awt.Color;
    import com.lowagie.text.*;
    import com.lowagie.text.pdf.*;
    import com.lowagie.text.Font.*;
    import com.lowagie.text.pdf.MultiColumnText;
    import com.lowagie.text.Phrase.*;
    import net.sf.hibernate.mapping.Array;
    import org.apache.poi.hssf.*;
    import org.apache.poi.poifs.filesystem.*;
    import org.apache.poi.hssf.usermodel.*;
    import com.lowagie.text.Phrase.*;
    import java.util.Iterator;
    * Generates a simple 'Hello World' PDF file.
    * @author blowagie
    public class pdfgenerator {
         * Generates a PDF file with the text 'Hello World'
         * @param args no arguments needed here
         public static void main(String[] args) {
              System.out.println("Hello World");
              Rectangle pageSize = new Rectangle(916, 1592);
                        pageSize.setBackgroundColor(new java.awt.Color(0xFF, 0xFF, 0xDE));
              // step 1: creation of a document-object
              //Document document = new Document(pageSize);
              Document document = new Document(pageSize, 132, 164, 108, 108);
              try {
                   // step 2:
                   // we create a writer that listens to the document
                   // and directs a PDF-stream to a file
                   PdfWriter writer =PdfWriter.getInstance(document,new FileOutputStream("c:\\weeklystatus.pdf"));
                   writer.setEncryption(PdfWriter.STRENGTH128BITS, "Hello", "World", PdfWriter.AllowCopy | PdfWriter.AllowPrinting);
    //               step 3: we open the document
                             document.open();
                   Paragraph paragraph = new Paragraph("",new Font(Font.TIMES_ROMAN, 13, Font.BOLDITALIC, new Color(0, 0, 255)));
                   POIFSFileSystem pofilesystem=new POIFSFileSystem(new FileInputStream("D:\\ESM\\plans\\weekly report(31-01..04-02).xls"));
                   HSSFWorkbook hbook=new HSSFWorkbook(pofilesystem);
                   HSSFSheet hsheet=hbook.getSheetAt(0);//.createSheet();
                   Iterator rows = hsheet.rowIterator();
                                  while( rows.hasNext() ) {
                                       Phrase phrase=new Phrase();
                                       HSSFRow row = (HSSFRow) rows.next();
                                       //System.out.println( "Row #" + row.getRowNum());
                                       // Iterate over each cell in the row and print out the cell's content
                                       Iterator cells = row.cellIterator();
                                       while( cells.hasNext() ) {
                                            HSSFCell cell = (HSSFCell) cells.next();
                                            //System.out.println( "Cell #" + cell.getCellNum() );
                                            switch ( cell.getCellType() ) {
                                                 case HSSFCell.CELL_TYPE_STRING:
                                                 String stringcell=cell.getStringCellValue ()+" ";
                                                 writer.setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO);
                                                 phrase.add(stringcell);
                                            // document.add(new Phrase(string));
                                                      System.out.print( cell.getStringCellValue () );
                                                      break;
                                                 case HSSFCell.CELL_TYPE_FORMULA:
                                                           String stringdate=cell.getCellFormula()+" ";
                                                           writer.setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO);
                                                           phrase.add(stringdate);
                                                 System.out.print( cell.getCellFormula() );
                                                           break;
                                                 case HSSFCell.CELL_TYPE_NUMERIC:
                                                 String string=String.valueOf(cell.getNumericCellValue())+" ";
                                                      writer.setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO);
                                                      phrase.add(string);
                                                      System.out.print( cell.getNumericCellValue() );
                                                      break;
                                                 default:
                                                      //System.out.println( "unsuported sell type" );
                                                      break;
                                       document.add(new Paragraph(phrase));
                                       document.add(new Paragraph("\n \n \n"));
                   // step 4: we add a paragraph to the document
              } catch (DocumentException de) {
                   System.err.println(de.getMessage());
              } catch (IOException ioe) {
                   System.err.println(ioe.getMessage());
              // step 5: we close the document
              document.close();
    My Input from MS-Excel file is:
         Planning and Tracking Template for Interns                                                                 
         Name of the Intern     N.Kesavulu Reddy                                                            
         Project Name     Enterprise Sales and Marketing                                                            
         Description     Estimated Effort in Hrs     Planned/Replanned          Actual          Actual Effort in Hrs     Complexity     Priority     LOC written new & modified     % work completion     Status     Rework     Remarks
    S.No               Start Date     End Date     Start Date     End Date                                        
    1     setup the configuration          31/01/2005     1/2/2005     31/01/2005     1/2/2005                                        
    2     Deploying an application through Tapestry, Spring, Hibernate          2/2/2005     2/2/2005     2/2/2005     2/2/2005                                        
    3     Gone through Componentization and Cxprice application          3/2/2005     3/2/2005     3/2/2005     3/2/2005                                        
    4     Attend the sessions(tapestry,spring, hibernate), QBA          4/2/2005     4/2/2005     4/2/2005     4/2/2005                                        
         The o/p I'm gettint in .pdf file is:
    Planning and Tracking Template for Interns
    N.Kesavulu Reddy Name of the Intern
    Enterprise Sales and Marketing Project Name
    Remarks Rework Status % work completion LOC written new & modified Priority
    Complexity Actual Effort in Hrs Actual Planned/Replanned Estimated Effort in Hrs Description
    End Date Start Date End Date Start Date S.No
    38354.0 31/01/2005 38354.0 31/01/2005 setup the configuration 1.0
    38385.0 38385.0 38385.0 38385.0 Deploying an application through Tapestry, Spring, Hibernate
    2.0
    38413.0 38413.0 38413.0 38413.0 Gone through Componentization and Cxprice application
    3.0
    38444.0 38444.0 38444.0 38444.0 Attend the sessions(tapestry,spring, hibernate), QBA 4.0
                                       The issues i'm facing are:
    When it is reading a row from MS-Excel it is writing to the .pdf file from last cell to first cell.( 2 cell in 1 place, 1 cell in 2 place like if the row has two cells with data as : Name of the Intern: Kesavulu Reddy then it is writing to the .pdf file as Kesavulu Reddy Name of Intern)
    and the second issue is:
    It is not recognizing the date format..it is recognizing the date in first row only......
    Plz Tell me wht is the solution for this...
    Regards
    [email protected]

    Don't double post your question:
    http://forum.java.sun.com/thread.jspa?threadID=617605&messageID=3450899#3450899
    /Kaj

  • How do I create self-writing text with overlaps?

    I've tried having a look around online and searching on here without much luck.
    I'm new to after effects and I've managed to create a basic self-writing text effect from videos online using a path and stroke technique, but there is a problem with using this technique for what I want. The text I am using has overlaps, where there are intersections, meaning that when I stroke through this area it shows chucks at the side of that line of text from the intersecting line (see below)
    I think the solution is to use a variable width stroke, where I can set the width correctly for each part of the path, but I don't seem to be able to find how to do this on CS6. I only seem to be able to define a width for the entire path at the same time

    Take a close look at this project. It's part of an upcoming tutorial on animating text and masks. Maybe the project will help. It's saved as a CC.
    Note: Dropbox will probably add a .txt extension to the file so just remove it so it just says ScriptWriteOnText_CC.aep and it should open just fine.
    The procedure was to create a text layer, then convert the text to a shape, then add a solid with stroke below the shape. I then animated the end of the Stroke with stroke set to On Transparent. I used the shape layer as a track matte to trim the stroke to the exact shape of the text converted to shape layer. I then added and animated the masks on the track matte layer. Each mask was changed to subtract and as I scrubbed through the timeline I added as many masks as I needed to clean up the crossing lines.
    There are many ways to do this. You could split the layer at the cross over, work the other way around, use Paint, but the idea is always the same and it's tedious, especially if there are a lot of crossing points. You could even create your text layers in Illustrator, convert the text to outlines, then divide up the segments of the letters and sequence them in After Effects.
    The faster you make the animation the easier it is to hide the crossing problems. For example, it only takes me about 3 seconds to sign my full name and with a signature that is that fast you could get away with a lot.

  • Extract text file with HTML tags from JTextPane

    hello world
    I have a big problem !
    I am creating an applet with a JTextPane ...
    so I can write text, (bold, italic etc), i can insert images.
    Now i want to create a text file with all the HTML tags
    corresponding to what I wrote in my JTextPane.
    I want to have and save the HTML file corresponding to what i wrote ...
    Is it possible ? Help me please ....
    Jeremie

    writing to a file from an applet is going to take a fair amount of work on your part.
    in order to write to a file from your applet, you have to use servlets or jsp to write to a file on your server. if you wish to write locally, look into signing your applet or policy settings of your browser.
    for writing to a file to the server, i suggest you look into servlets and tomcat to run the servlets.
    i just finished a project that used servlets and they take some time to figure out, but its definitely worth your time.
    here are some websites...
    http://www.j-nine.com/pubs/applet2servlet/Applet2Servlet.html
    http://jakarta.apache.org
    other websites have tutorials that you can look at too
    Andy

  • Please help! I defragged my hard drive and now Illustrator CS6 is trying to open all of my complex Illustrator files with a "Text Import Options" box as if they are text files, and they are not opening!

    Please help! Illustrator CS6 started trying to open all of my complex.ai files with a "Text Import Options" box as if they were text files, and they are not opening!  Help!

    Hi Monika,
    I have spent the last two or three days trying to do what you suggested.  I uninstalled Adobe 6 from Windows.  Some files that CS6 placed on my system during installation remained, including fonts and .dll files.
    I had to abandon the Cleaner Tool you suggested because in one screen it allowed me to specify removing CS6 only, but on the following screen it only gave on option to remove ALL Adobe programs.  I could not do that because I didn't have the serial number handy for CS3 in case I want to reinstall it at some point.
    I tried to get technical help with the Cleaner Tool problem but no definitive help was available, so I reinstalled CS6 again without having the benefit of the Cleaner Tool.  I tried to get the serial number for CS3 so I could use the Cleaner Tool but spent 2 wasted hours in chat.  Even though I had a customer number, order number, order date, place of purchase, the email address used AND 16 digits of the serial number, in two hours the agent couldn't give me the serial number.  After two hours I had nothing but instructions to wait another 20 minutes for a case number.
    Illustrator CS6 is still trying to open some backups as Text and otherNone of the problems have been fixed.  I have tried to open/use the .ai files in CS6 installed on another system and am getting the same result, so I don't think the software was damaged by the cleaner.  The hard drive cleaner is well-known and I've run it many times without any problem to previous versions of Illustrator or any other programs.
    When I ordered, the sale rep promised good technical support and gave me an 800 number, but after I paid the $2000, I learned that the 800 number she gave me doesn't support CS6 and hangs up on me.  Adobe doesn't call it a current product even though they just sold it to me about 3 weeks ago.
    Would appreciate any help you experts can offer.  If I can't solve this, the last backup I can use was from June and I will have lost HUNDREDS of hours of work and assets that I cannot replace.
    Exhausted and still desperately in need of help...

  • Crystal Report with text(csv) data file, can we set it as input parameter?

    Hi,
    I am a new user of Crystal Reports 2008.
    I have created a report with charts in it. The input data comes from a csv text file.
    Can I set the name of this text file as an input parameter?
    as I need to generate 44 similar reports with different text filenames(and data)?
    Thank you.
    Regards

    Brian,
    Thanks much.
    I did exactly what you said.
    Just to see any change, I first gave a bad report file name just to see if I am accidentally pointing to a different file,
    but I got an error saying report not found.
    Then I renamed my original datafile name and generated a report and it still generated one without giving an error.
    Then I also gave a junk name to the logoninfo and printed that name, the new name was assigned to logoninfo, but the code did not error out.
    It ended up generating the report.
    Now here is what I think is happening,
    1) The save data in report option seems to be still on even though I have turned it off in 2 locations
    a) file -> Report Options
    b) file -> Options -> Reporting tab.
    2) For some reason the logoninfo is getting ignored as well.
    Since I did not see any answers yesterday I posted a link to this thread on the .Net forum
    Crystal Report with text(csv) data file, can we set it as input param? C#
    and Ludek Uher says that I am connecting to the text file via a DAO database engine and so need to use the same code for changing the text file as for changing an Access database.
    But the link he gave me tells me to try the same thing that we have been trying..
    Here is my plan,
    1) I will first try and find out why my save data with report option is still on ( but it shows off in Crystal ).
    2) why is LogonInfo getting ignored.
    Meanwhile any suggestions from anyone are welcome.

Maybe you are looking for