Myterious character in text file! Please help!

Hello all
I am experiencing a problem identifying a certain character in a text file I have to import.
In the .txt doc the char appears as a square, and when copying the text to MSWord, it seems like a paragraph sign.
But when I'm searching for paragraph signs or line breaks, it is skipping that char, so it must be something else.
Question:
How will I find out what char it is, in order to remove it with StringTokenizer?
I already tried ("\r") and ("\n")
Any ideas will be welcome
Regards
Jaco

Get the bytes using String.getByes(), print out the value of the byte for the particular character u are looking ,and then u will know which ASCII char it is.
Most likely it would be char(13).
byte [] bytes=s.getBytes();
for(int i=0;i<bytes.length;i++)
system.out.println(byte);
Hope it helps.

Similar Messages

  • Logging java errors to a text file, please help.

    Could someone please advise how to log java errors to a text file?
    I know from Window you can do to "ANY COMMAND > C:\log.txt and the output will send to the log.txt text file.
    However, how do you log errors when you run java filename? Wish I could just copy and paste from my Window command prompt screen.
    I am just trying to post the errors I receive to the forum.
    Thanks,

    user_s8721301 wrote:
    ..Wish I could just copy and paste from my Window command prompt screen.(from memory) Drag the mouse diagonally across the text in the DOS prompt, then hit 'enter'. The selected text should be on the clipboard, ready to paste.

  • Illustrator CS4 wont save files, please help?

    You can edit a file, go to save, close it down, then when you re-open it the changes made have not been saved?? No error message or warning pops up, and it all looks ok like it has saved properly, until you open it up again. This also happens when you use 'save as' command if you use the original file name. If however you type in a different file name - it saves ok. But obviously that is not great as you cant now trust or rely on the save mechanism of the programme, to make sure any changes to artwork have been stored!! I have never seen an issue like this, it is worrying, I hope somebody can help?
    Thanks.
    We are running CS4 on windows7 - yes PC!!!

    We save in EPS, and its not just one file, its a variety of different files and it seems to be random as to which files it does it on, some work fine - some don't. And it can be anything from a minor text change to a colour change, it doesnt seem to matter on the change made, it reacts the same.
    The files are saved over a network connection to a large external hard drive.
    Its really puzzling and now starting to cause problems as we do a fair bit of work in it, and can't trust one of the most important features, and that any changes that have been done have been saved and stored!
    Hope maybe you can help with any thoughts at all.
    Cheers.
    Date: Thu, 24 Jun 2010 03:41:40 -0600
    From: [email protected]
    To: [email protected]
    Subject: Illustrator CS4 wont save files, please help?
    What file format do you save it in?
    What kinds of changes did you make in that file?
    Where do you save the file (removable or network media)?
    >

  • I'm getting this problem when trying to update my iphone 3gs it says that the iphone software could not be contacted and I went on youtube got some advise to go into my hard drive to fix the error I have nothing in my host file please help me if you can

    I'm getting this problem when trying to update my iphone 3gs it says that the iphone software could not be contacted and I went on youtube got some advise to go into my hard drive to fix the error I have nothing in my host file please help me if you can this is all new to me.

    Read this: iOS 4: Updating your device to iOS 5 or later
    ... oh I think it is a 3gs or a 3
    This makes a difference. What does it say in Settings > General > About?

  • In a document with several sections, in section VIII and IX one cannot select the text of the page foot nor set the pointer in it; so, one cannot write nor change the page foot text. Please help!

    in a document with several sections, in section VIII and IX one cannot select the text of the page foot nor set the pointer in it; so, one cannot write nor change the page foot text. Please help!

    Question already asked and answered several times.
    It's a bug striking in long documents.
    Select a word somewhere higher in the page then use the arrows to reach the wanted insertion point.
    Yvan KOENIG (VALLAURIS, France) mardi 23 août 2011 15:44:24
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please :
    Search for questions similar to your own
    before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • HOW TO - Create new from clipboard and process multiple files - please help

    Need help - have new version of photoshop on trial only ATM...
    Want to know - HOW TO:
    1. Create new from clipbaord
    2. Process multiple files
    Please help.

    For clipboard copy, I start with File > New and the size will be set to what's in the clipboard. Then once the new file is opened, Edit > Paste will place the clipboard contents as a layer in the new document.
    You must remember to use the command Layer > Flatten Image of you want to save as jpeg or any other file format that doesn't support layers.
    For processing multiple files,
    File > Automate > Batch or
    File > Scripts > Image Processor...
    Check the User guide or google information for those commands if you have specific needs.
    Gene

  • How to view corrupted word files, please help?

    Can't view doc corrupted file .How to recover unsaved documents WORD? how to view corrupted word files, please help

    It could be Word or even Windows that is having the problem. Before you start trying to restore a backup or repair a file, try opening other documents.
    Try opening your "corrupt" document from another computer. Also you can try to make a copy of corrupted files. (It could work) : http://www.filerepairforum.com/forum/microsoft/microsoft-aa/word/968-i-would-be-grateful-for-any-help-to-repair-or-the-procedures-word-files
    But if nothing helps, you can try to recover it by using DOCX Viewer Tool Download free demo versions of this software from website: http://www.docx.viewertool.com/ It’s
    gonna help.

  • I try to download abode acrobat xi pro from abode download asssistant,it shows download is completed.but iam not able to get thet downloaded file,please help me

    i try to download abode acrobat xi pro from abode download asssistant,it shows download is completed.but iam not able to get thet downloaded file,please help me

    oatgeo wrote:
    I  checked the proxy and it should be OK. That's mean I have to try and try again until I get it from the slow servers.
    Yes.

  • Lost unsaved Garage Band File - PLEASE HELP

    Lost unsaved Garage Band File - PLEASE HELP
    I had an audio file made on Garage Band but it was unsaved. I left my computer on at night and for some reason this morning my computer had seemed tor restart. I opened the garage band file but nothing came up.
    Is there any way I can recover this 'unsaved file'? It must be stored in cache somewhere.
    Someone please advise.
    Thanks.

    I would just like to say Thanks to HangTime up there. This trick worked 100% ... I had recorded 8 or 9 rather long tracks; for an unexpected reason (first time I've ever seen the "gray screen of death") the popup window came up and in several languages told me I needed to restart the computer; did what it told me to, begrudingly. Came back online, opened the GB file, nothing was there. Yet, when I checked package contents for the file (which I didn't even know existed, compartmentalized "Media", until after reading this), there were the tracks! I owe you both for getting this up and running... album creds just may be in line. ~Matt

  • I just upgraded my phone. I keep getting duplicate texts. Please help.

    I just upgraded my phone. I keep getting duplicate texts. Please help. Thanks!

    Toggle iMessage Off then On
    Turning iMessage off then on again worked for my particular issue. You can do this by following these steps:
    From the Home screen, open “Settings“.
    Select “Messages“
    Slide “iMessages” to off for about 3 minutes, then turn it back on.
    Your iPhone will be re-registered and may clear up the duplicate text message notification problem.
    Repeat Alerts Setting
    There is a setting that repeats notifications which could cause this issue. Check it with these steps:
    From the Home screen, open “Settings“.
    Select “Notification Center“.
    Choose “Messages“.
    Ensure that the “Repeat Alerts” setting is set to “Once“.
    Send & Receive Setting
    Another setting that involves sending notifications to multiple numbers could be the issue as well. Check the following:
    From the Home screen, open “Settings“.
    Select “Messages“.
    Choose “Send & Receive“.
    Ensure that only your phone number is listed in the “You can be reached by iMessage at” area. If you have an email address or anything else listed, it could cause duplicate text messages.

  • I have a iPad 2 and I can't send a text messege please help?

    I have a iPad 2 and I can't send a text messege please help?

    See Here  >  Troubleshooting Messages
    http://support.apple.com/kb/TS2755

  • TS4268 When I text someone back at certain times it is saying I'm texting a three digit number which is an international number when it's really someone I knows number. What is going on? I'm gettin charged for these texts. Please help thanks

    When I text someone back at certain times it is saying I'm texting a three digit number which is an international number when it's really someone I knows number. What is going on? I'm gettin charged for these texts. Please help thanks

    Hi Harm,
    Thank you for the response and compliments. I'm just in the process of testing everything. I will deffinately get back to you to let you know the answer.
    Here is the g spot of the source clip. Sorry for the mistake.
    Thanks again, and hopefully by this afternoon, or early tomorrow, I'll get back to you!
    Saad

  • File error for improperly inserted or defective desk when using Word with text boxes PLEASE HELP!

    When I have a Word document opened that contains around 10 text boxes, I get..."A file error has occurred. Check your network connections or make sure the disk is properly inserted and not defective" causing the program to either quit automatically or freeze and require me to manually shut my computer down. This will occur about every 15 minutes and only when I am on a document with numerous text boxes. Also, I do copy and paste the text boxes from file to file and change the text accordingly.
    Operating System - Mac OSX 10.8.5
    Microsoft Word 2011 - Version 14.4.5
    File sizes - around 190 KB
    I have turned off track changes and smart cut and paste options, checked for duplicate fonts (none), verified both the Macintosh HD and Apple HDD Media disks (both said the disks were fine so I did not repair either). My husband mentioned something about allocating the working memory space of Word but not sure how that is done (and he is on Team PC ). PLEASE HELP!!!

    CPie wrote:
    o..k.
    I see that you have run out of helpfulness for this session, What the ....? I just told you to add your jtextfield to a jpanel or some other visible component to be seen.
    it is getting late here I will take my business elsewhere tomorrow rather than waiting up for a response which shows you realllly need to find something better to do! And thanks for the help earlier. That was actually useful whereas this wasn't, I'm sure you knew that already,You know that we are all volunteers here. Any time spent here helping you is time away from our friends and families. A little more appreciation is definitely in order or go somewhere else and pay for your help.

  • Want to know how to check for new line character in text file

    Hi All,
    I`m trying to read data from text file. However I`m not sure whether the data is in 1st line or nth line. Now I`m trying to read the text from the readline. But if text is "" and not NULL then my code fails. So I want to know how to check for new line character and go to next line to find the data. Please help.
    Thanks
    static int readandwriteFile(Logger logger,String filepath){
              BufferedWriter out = null;
              BufferedReader in = null;
              File fr = null;
              int get_count = 0;
              try     {
              if(new File(filepath).exists())
              fr= new File(filepath);
                        System.out.println("FileName: "+fr);
                   if(fr != null){
    in = new BufferedReader(new FileReader(fr));
                             String text = in.readLine();
                             if(text != null){
                             get_count = Integer.parseInt(text);
                             in.close();
                             else{
                                  get_count = 0;
         else{                    
    out = new BufferedWriter(new FileWriter(filepath));
         out.write("0");
                out.close();
                   }          //Reading of the row count file ended.
              catch(Exception e) {
                   e.printStackTrace();
              finally {
                   try{               if (in != null) {
                             in.close();
              if (out != null) {
                             out.close();
              catch(Exception e) {
                        e.printStackTrace();
              return get_count;
         }

    You are calling the readline() only once which means you are reading only the first line from the file...
    Use a loop (Do-While preferably)
    do{
    //your code
    }while(text == "")

  • Read from Text File Detailed Help need Clean-up

    This is probably well known and nobody has bothered fixing it but the detailed Help of the "Read from Text File" function is sort of ambiguous:
    -  statement 1: refnum out is the refnum of the file that the function read. You can wire this output to another file function, depending on what you want to do with the file. The default is to close the file if it is referenced by a file path or selected from the file dialog box. If file is a refnum or if you wire refnum out to another function, LabVIEW assumes that the file is still in use until you close it.
    - statement 2: If you wire a path to file, the function opens the file before reading from it and closes it afterwards.
    I have found statement 1 to be correct, which makes statement 2 incomplete (and sort of tautological in the sense that 1) you expect LabVIEW to open the file before reading from it if you provide a path instead of a refnum... and 2) if you use a path input to file AND use the refnum out for some other function, the file is NOT closed, as correctly stated in statement 1).
    Just sayin' ...

    X,
    It deeply concerns me that you would take my response to mean indifference. I certainly had no intention to belittle what you had to say. On the contrary, I took this up with the concerned team, and had a small discussion. If you say that what someone says on this forum is of lesser or no value to National Instruments, you could not be more wrong. It defeats the whole purpose of this public forum.
    My point was not that it is not an issue, it certainly seems to be. Please be rest assured that even if it does not look like it from the outside, each comment however big or small is taken back to our workplaces and some thoughts poured over it. 
    On the whole, I recognise that I had a role to play in this misunderstanding of tone, and I sincerely apologise.
    Warm Regards,
    Prashanth N
    National Instruments

Maybe you are looking for

  • Looping at internal table

    Hi, I work on SAP BW and need guidance on the functionality from the below code: l_s_datapak_line[] = datapak[].     l_s_datapak[] = datapak[].     sort l_s_datapak_line by pernr endda descending. loop at l_s_datapak.    read table l_s_datapak_line w

  • Problem in Packet.dll file calling with JNI

    I called wpcap.dll and packet.dll using JNI & while using native method of packet.dll, I am getting the error: The Procedure entry point PacketGetReadEvent could not be loaded in the dynamic link library packet.dll. Please help. Thanks in advance.

  • How can can i subtract the value of the column in each row ?

    I want to subtract  the value  of the column in each row if the row is not enough then continue to next row. For example  ID             QTY A               20 B               40        C               60 I want to update this table by subtract  the

  • High Resolution Stills

    Is it possible to get high resolution stills from video using final cut pro? How do I do this? I desperately need to get printable images from video - with minimum expense!

  • Aperture Streaming Problem

    Greetings everyone. So, I've recently purchased and AppleTV and while most everything is turning out perfectly, I'm having a major issue with getting my Aperture photos to stream to the AppleTV and I was hoping that someone here could should some lig