Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. spankweat

    write data to a file using servlets.

    Hi, I have a Java Servlet that writes results from a form to a text file. FileWriter fw = new FileWriter("results", true); PrintWriter pw = new PrintWriter(fw,true); pw.print("data"); I ran the servlet on my home computer (using the web server provided by the jsdk) and it...
  2. spankweat

    java.lang.OutOfMemoryError

    Well the problem is that I am using StringBuffer().insert and String doesnot have this method.
  3. spankweat

    java.lang.OutOfMemoryError

    Exception in thread &quot;main&quot; java.lang.OutOfMemoryError <<no stack trace available>> ... my program is just parsing a text file of about 200 lines. It looks for the following character &quot;. Anybody had this problem before?
  4. spankweat

    Problem reading file

    Let me know if you find your other way around! My email is spankweat@yahoo.com Thanks!
  5. spankweat

    Problem reading file

    I meant a stream to directly pull up the information from the text file (without having to delete the null char) =) A stream that would skip the null char ...
  6. spankweat

    Problem reading file

    Thanks a lot LittleWing. That's a really smart solution! Let me know if you find another solution. I was wondering if you could use another type of stream to handle this type of file ... By the way there is a faster way to get the text file msinfo32 /report test.txt /categories +SystemSummary
  7. spankweat

    Problem reading file

    Hi LeonTang and LittleWing, I think that the problem is definitely coming from the text file. LittleWing, thanks for the rectification. If you have a Windows OS, run: msinfo32 /report test.txt test.txt is the file I am trying to parse. As you probably know, it contains information about the...
  8. spankweat

    Problem reading file

    I used a PrintWriter to write what the program was reading from the original file. When I opened that file in Word and WordPad, I noticed that there was a weird ASCII character between every character. It looked like a box. I opened the text file in TextPad and tried to copy the weird...
  9. spankweat

    Problem reading file

    Hi LeonTang, I think that I was using StringTokenizer the right way. I have a file containing information. After the &quot;word&quot;, there is the information I need to save into a Java variable. The text file might look like this; I am looking to save the String &quot;test&quot;. &quot;a...
  10. spankweat

    Problem reading file

    Hi LittleWing, what do you mean exactly?
  11. spankweat

    Problem reading file

    In StringTokenizer st = new StringTokenizer(line,&quot; &quot;); The &quot; &quot; is actually a tab. I tried a space, but the System.out.println(line) doesnot give me % w % o % r % d but % w o r d I am thinking there is a special character .... Thanks!
  12. spankweat

    Problem reading file

    here is the code: import java.io.FileReader; import java.io.LineNumberReader; import java.io.FileWriter; import java.io.PrintWriter; import java.util.StringTokenizer; import java.io.IOException; import java.io.*; class FileParser { private static String name; public static void parse() {...
  13. spankweat

    Problem reading file

    Hi, I am having problem reading from a file. I use StringTokenizer to parse the file and find the word that I am looking for. The problem is that the word is never found; I know its there because I opened the text file. Since the text file was generated by Windows, I think that there are some...

Part and Inventory Search

Back
Top