Having trouble compiling this file reader program!!

Hi,
I wrote this program to read a flat file so I can parse it thereafter. I'm not sure where I need to change syntax.
If need be, I can send the error msg.
Thanks in advance!!
import java.io.*;
class FileReader1
     public String readLine() throws IOException
          try {
               //FileReader br = new FileReader(new
               //File("C:\\Shared CLM\\netsvc.txt")) ;
               LineNumberReader lnr = new LineNumberReader(new FileReader(
               "C:\\Shared CLM\\netsvc.txt")) ;
               String line = lnr.readLine() ;
               //switch() {...}
                    lnr.close() ;
                    //br.close() ;
               } catch (IOException e) {
                              e.printStackTrace();
}

Well, I removed the ";" but I am still getting 9 errors...
C:\mail\CLM Mail Program\Ballb.java:6: ';' expected
     public String readLine() throws IOException
^
C:\mail\CLM Mail Program\Ballb.java:6: missing method body, or declare abstract
     public String readLine() throws IOException
^
.\FileReader.java:7: ';' expected
public String readLine() throws IOException
^
.\FileReader.java:28: '}' expected
^
.\FileReader.java:7: cannot resolve symbol
symbol : class IOException
location: class FileReader
public String readLine() throws IOException
^
C:\mail\CLM Mail Program\Ballb.java:13: cannot resolve symbol
symbol : constructor FileReader (java.lang.String)
location: class FileReader
          {LineNumberReader lnr = new LineNumberReader(new FileReader("C:\\Shared CLM\\netsvc.txt")) ;
                                                             ^
C:\mail\CLM Mail Program\Ballb.java:14: cannot resolve symbol
symbol  : variable line 
location: class Ballb
          line = lnr.readLine() ;
                ^
C:\mail\CLM Mail Program\Ballb.java:21: return outside method
               return line;
                        ^
.\FileReader.java:7: missing method body, or declare abstract
public String readLine() throws IOException
              ^
9 errors                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • I am having trouble syncing my files in my CC storage between devices.  If I upload files on my iMac, they don't appear in my CC iPhone app.  Why?  This is maddening, as I need to work between devices.  Please advise.

    I am having trouble syncing my files in my CC storage between devices.  If I upload files on my iMac, they don't appear in my CC iPhone app.  Why?  This is maddening, as I need to work between devices.  Is this not like Drop Box?
    Please advise.

    Error: "Unable to sync files"

  • I've got the labview vi written to read my IMU data from a serial port in COM1 and it displays onto the table on the front panel. I'm having trouble getting this data onto an excel spreadshee​t. Any ideas?

    I've got the labview vi written to read my IMU data from a serial port in COM1 and it displays onto the table on the front panel. I'm having trouble getting this data onto an excel spreadsheet. Any ideas? Right now my data will collect one reading instead of continuously reading my IMU which displays data in a continuous stream.
    Thanks
    Attachments:
    Read_IMU_Drew.vi ‏21 KB

    Hi
    Your vi is in 2009 version, which i am unable to open in 8.6
    However, if you want your data to be saved in excel sheet, here is the VI
    Somil Gautam
    Think Weird
    Attachments:
    save to excel.vi ‏12 KB

  • Having trouble compiling

    I am a total newbie at programming and I am having trouble compiling. In the MS-DOS prompt, I located the folder where my .java file is located and typed the following:
    javac SampleProgram.java
    I received a "Bad command or file name" error. I am typing the names correctly. I am using Java 2 SDK, Standard Edition Version 1.3.1. Am I doing something wrong?
    Thanks for any help.

    That should fix it. The problem is that DOS needs to know where to find the executable files like javac.exe
    You can either set the path temporarily by typing
    SET PATH=.;c:\jdk1.3.1\bin
    at the command prompt each time you open a command window, or you can set it more permanently by adding it to your startup config. This will depend on your OS. On win 98 for example, there is an AUTOEXEC.BAT (usually with a SET PATH command already present). You could open this in notepad to add/change:
    SET PATH=C:\WINDOWS
    to
    SET PATH=C:\WINDOWS;.;C:\JDK1.3.1\BIN
    Reboot to make the changes take effect. Other OS's may have a special dialog to set this kind of command.
    Hope this helps some.

  • Having Trouble Opening TIFF Files

    I'm having trouble opening TIFF files into Camera Raw. I have checked all my settings in Adobe Bridge and everything seems to be saying that TIFF files should open in Camera Raw when I click on then int and then into photoshop when finished editing in camera raw.
    I'm trying to open 32 bit HDR images saved as a TIFF file into Camera Raw, and there seems to be nothing I can do to get them there. I have tried everything I can think of. When I right click on it (cmd click I'm on a mac) the option to open in camera Raw isn't there. I have tried clicking and dragging the image into Photoshop to try and force it maybe to open into Camera Raw, and I have opened photoshop and tried opeing it up from mini Bridge. In mini bridge I have the option to open the image into Camera Raw when I click this nothing happens.
    I'm not sure what else to try I'm on CS6 and Camera Raw 7.0 .

    Alright I'll try that thanks!
    Date: Wed, 19 Mar 2014 23:34:31 -0700
    From: [email protected]
    To: [email protected]
    Subject: Having Trouble Opening TIFF Files
        Re: Having Trouble Opening TIFF Files
        created by R_Kelly in Adobe Camera Raw - View the full discussion
    It might be that you need to update camera raw to version 8.3 by going to Help>Updates from within photoshop or bridge.
    (i don't remember exactly in which version of acr that was added, but probably after version 7.0)
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6226366#6226366
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6226366#6226366
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6226366#6226366. In the Actions box on the right, click the Stop Email Notifications link.
               Start a new discussion in Adobe Camera Raw at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Having trouble saving tiff files to server

    Hi all,
    I'm having trouble saving tiff files to our server (a mac pro running OSX 10.5.7 client not server). I get the error message 'could not save "filename" because write access was not granted. The disk in question is set to ignore permissions and the other 3 Macs on the network have no problems.
    Bizarrely this only seems to happen when saving as a Tiff file, I can save as JPEG without issue! The file will usually save after a few attempts, sometimes six or seven save as' are needed.
    This problem comes and goes, but at the moment its pretty bad.
    This is becomming very frustrating as Tiff is our prefered format and we work as a team so have to save to the server.
    Any ideas?

    Just to expand on Buko's correct ansswer, this is the boilerplate text I use in connection to saving to a network (please NOTE the part where it explains that normally, it does work, but that it is impossible to troubleshoot someone else's network remotely, and that's why it's not supported by Adobe):
    If you are opening files over a network or saving them to a network server, please cease and desist immediately in the event you are currently experiencing problems with one or more files. Working across a network is not supported.
    See: 
    http://www.adobe.com/support/techdocs/322391.html
      Copy the CLOSED file from your server to your local hard disk, work on it, save it again to your local hard disk, close it, and copy the closed file back to the server.
         Of course, the fact that Adobe does not support working across a network does not necessarily mean it won't work.   It should.
        Adobe's position is that there are too many variables in a network environment for them to guarantee that everything will work correctly in every network, especially given the fact that if something does not work properly, it's probably the network's fault, and Adobe has no way of troubleshooting your network.
      If you can't work locally, you are on your own, and if something happens, you're on your own. If you must work from a server, make sure your network administrator is a competent professional.
    When problems arise, a lot of valuable work can be lost.

  • I'm having trouble saving my file in adobe acrobat pro 9

    I'm having trouble saving my file in adobe acrobat pro 9.  When I attempt to save I get message saying,"Bad File Handle".  There are several pictures on this file I'm trying to save...dont know if that has anything to do with the problem, just thought it would be helpful information.  Would really appreciate any insight anyone has to offer.
    Thanks in advance

    I am having a similar problem with a simple pdf form.  I have made several changes to the pdf and when I go to save, I get the message that I can't save the file due to a "bad file handle."  I have opened, altered, saved, and closed the form several times before, just not now.  No one else was working on the form.  The file format is still a pdf and nothing has changed.

  • Hi. i'm having trouble viewing pdf files in safari

    i'm having trouble viewing pdf files in safari.

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • Im having trouble importing mov files into premiere pro on creative cloud, have installed quicktime

    Im having trouble importing mov files into premiere pro on creative cloud, original problem was no video and only audio when I imported mov file, so I have installed quicktime after reading that may solve the problem,but now an error message reads codec missing or unavailable, any help would be appreciated

    MOV is a wrapper... what is inside the wrapper?
    Codec & Format information, with 2 links inside to read
    -read both links in reply #1 http://forums.adobe.com/thread/1270588
    Report back with the codec details of your file, use the programs below... A screen shot works well to SHOW people what you are doing
    http://forums.adobe.com/thread/592070?tstart=30
    For PC http://mediainfo.sourceforge.net/en or http://www.headbands.com/gspot/

  • Having Trouble Downloading Certain Files

    I just got a Droid Razr the other day after accidentally dropping my Droid 2 off a third floor balcony. I'm enjoying the phone so far, but I'm having trouble downloading certain files. I use my phone to listen to podcasts. With my old phone I was able to download them from their respective websites by hold-clicking the download link, and clicking "Save Link." Now when I do that, I get the little "Starting Download" message, then, nothing. Is there some setting or something that isn't right?
    Full disclosure, when I was transferring the files from my old 8GB SD card to my new 16GB card, I accidentally put the files on the internal storage instead of the SD card, so after getting the files onto the right card, I deleted those files from internal storage. I was thinking perhaps I accidentally deleted some system file or something that would cause this problem, but I really have no idea.
    Thanks in advance for your help!

    Try Opera Mobile because a number of stock browsers have issues downloading from some sites.... 
    As for the possibilty od deleting system files you should not have access to any system files that would cause and device issues because you have to have Superuser rights and the system wont have this without voiding warrenty..

  • I'm having trouble opening pdf files for weeks now. Help please.

    I'm having trouble opening pdf files for weeks now. Can someone help me?
    It

    Hi,
    Do you have Adobe Reader installed on your device? You can check it under Settings-->Apps. If Adobe Reader is installed on your device and still the pdfs open in some other app, then you might have chosen that app to be the default app for always opening pdfs. You can clear the defaults for that application. Just go to Settings-->App--->Polaris(or any other app where the files open)--->Clear Defaults. Next time you try to open a pdf, you will be presented with the options again. Hope this helps. Please let us know if you still face some issues.
    Thanks.

  • Having trouble with wav files and sample rates

    Hi ,I am having trouble with wav files and sample rates .I have been sent multiple projects on wav as the main instrumental ; I wish to record in 48.000kHz .Now comes the problem.When I try to change the project to 48k It seems to pitch up the track.I can't have them send the logic/project file as most have outboard synths,different plug ins etc.This particular case the producer has recorded the synth task in 41.000 kHz .My successful outcome would be to be able t create a project file in 48 kHz .And NOT pitch up whne I add the instrumenta wav file .Any help would be gratefully recieved,this is my first post so any mistakes I may have made go easy 

    You'll have to convert the actual synth audio file file that the producer gave you to 48kHz. You can do this in the audio Bin in Logic.

  • Having Trouble Opening .EPS File

    I am trying to open a .eps file in Illustrator CS3. As it is trying to open the progress bar for Parsing EPS format appears. Once the bar reaches the end, an error message shows up saying  operation cannot complete because of an unknown error. Can anyone please tell me why this is happening? Even tried opening it up in Photoshop and paring error message appeared. I am using a PC on windows Vista. Any help is greatly appreciated.

    Scott,
    I received the emailed file in zip. Tried opening it with illustrator and the same problem happened again. Any reason why it may still not be opening up? Do you recommend maybe reinstalling illustrator. This problem never happened before. Thanks
    Sebastien
    Date: Mon, 6 Jul 2009 13:51:18 -0600
    From: [email protected]
    To: [email protected]
    Subject: Having Trouble Opening .EPS File
    Where did the file come from?
    Was it emailed to you?
    Email servers often corrupt eps files. It's best to have the person zip the file before sending it.
    >

  • Error message-The installer has insufficent privileges to modify this file:C:\Program Data\microsoft\windows\start menu\programs\iTunes\.iTunes.ink

    error message-The installer has insufficent privileges to modify this file:C:\Program Data\microsoft\windows\start menu\programs\iTunes\.iTunes.ink     
    How do I correct this to download iTunes so it will run?

    That one's consistent with disk/file damage. The first thing I'd try with that is running a disk check (chkdsk) over your C drive.
    XP instructions in the following document: How to perform disk error checking in Windows XP
    Vista instructions in the following document: Check your hard disk for errors
    Windows 7 instructions in the following document: How to use CHKDSK (Check Disk)
    Select both Automatically fix file system errors and Scan for and attempt recovery of bad sectors, or use chkdsk /r (depending on which way you decide to go about doing this). You'll almost certainly have to schedule the chkdsk to run on startup. The scan should take quite a while ... if it quits after a few minutes or seconds, something's interfering with the scan.
    Does the chkdsk find/repair any damage? If so, can you get an install to go through properly afterwards?

  • Having trouble authorizing this computer

    I am having trouble authorizing this computer to transfer purchases from my iPhone. It is saying I have deauthorize another computer. How do I do that?

    click here for information.

Maybe you are looking for

  • Apple ID security questions

    can anyone help me on how to reset my apple ID security questions. i dont have a recovery email. all the steps are very complicated.i have tried reset-ing my password and all but the security question is still the same.

  • Cannot update drivers error code 193 on All in one 8500 Win 8.1

    Running Win 8.1 updated from 7.. All in One 8500 910A Can do basic printing but no longer have twain support for scanning etc. When trying to update get failure notice error number 193. HP message says they have no further advice

  • External Hard Drives not being recognized

    I have 3 external hard drives. Had them for a long time now. I recently made only one change: I decided to start using the 'sleep' mode. I noticed the sleep mode and external hard drives didn't get along real well, so I simply took the externals (use

  • Translucent border on a canvas?

    I have a canvas with a thick border. I'd like to make it less obvious, but there is no borderAlpha property. Can anyone suggest a work-around?

  • Query Required For sort

    CREATE TABLE COUNTRIES(CID INT,CNAME VARCHAR(100)) INSERT INTO COUNTRIES VALUES(1,'AUSTRALIA') INSERT INTO COUNTRIES VALUES(2,'INDIA') INSERT INTO COUNTRIES VALUES(3,'FRANCE') INSERT INTO COUNTRIES VALUES(4,'BERLIN') SELECT * FROM COUNTRIES o/p CID C