How to change the file pointer in random access file?
I have a file, now I want to add a line at both the beginning and ending of the file. Should I use random access in this case? How can I move the pointer to the end of the file in that case? Thanks!
ruuram
I have a file, now I want to add a line at both the
beginning and ending of the file. Should I use random
access in this case?That's up to you. RandomAccessFile doesn't allow you to insert data at the beginning of the file, though.
How can I move the pointer to the
end of the file in that case? Thanks!
file.seek(file.length())
Similar Messages
-
How to change the file type from IMOVIE PROJECT to other types of file
how to change the file type from IMOVIE PROJECT to other types of file??
thank you very much for your help=]I am not sure what you mean, but once you make a project. Then go to the share menu and you can export the project to iDVD, itunes, mobileme, quicktime.
Share export quicktime movie will allow you to export to a variety of codecs. What specific export are you looking to share the movie in? What is the final source that the movie will be displayed? -
How to change the file name of pdf file in html page?
Hi,
Actually my requirement is to upload 50 PDF files containing javascript in each file into flex page with the help of one html page.
i did the the javascript part by using batch processing.
now i want to call those pdf files one after another without changing the file name in html page
the code written in html page is
<html>
<body>
<object id="PDFObj"
data="http:\\localhost\pdf\20090807 - Batch 630.pdf"
type="application/pdf"
width="100%"
height="100%">
</object>
</body>
</html>
So every time i have to change that file name to acess another file.
Is there is any other way to sort this problem????
Plz anyone help me to sort out this problem with some code or some example.I once had a similar task for creating a webpage that I only use on my computer--a webpage that accesses PDF's and SWF's font previews from a list of fonts as "a href's". What you must do is utilize the power of the command line, whether on a Mac on a PC or on Linux, Linux being the most powerful (although Mac IS Unix). You must utilize variables, variable replacement, and then a command to print out the results of a "for" or "while" loop to a text file which will be your HTML file with each individual link automatically built into the HTML code. You will have a list of 50 links. If you are simply looking for a GOOGLE type functionality where you click on "Next" and "Previous" you will have to dig deeper into variable replacement--this I don't know how to do yet but there are books for command-line shell interpreters. One shell interpreter is called "bash" (born-again shell) and there is a book on the market which gives a detailed example of how to replace variables in a shell script. Again, I don't know how it works. I will try to learn this at a later time when I am more seasoned with the basics of shell scripting.
-
How to change the file main.html in catalyst?
My Web Hosting can not accept files with main.html, only with index.html. How to rename the file in Catalyst? Please do not tell me I have to go to the builder to do this.
here is the link: http://www.insight-gd.com and see what comes up.
thx
Mikechris, I'm in open war with the people from my server hehehe, they say that it is possible to accept the domain main.html. But my question is if I return the letter M by m, will not interfere in other files?
thx
Mike -
How to change the registration point on a shape
Hi,
Is there a way to change the registration point on a shape
created in Director? For instance, I created a filled oval, and by
default Director sets the top left corner of the surrounding square
as the registration point. Nevertheless, I need to place that
registration point at the center of the oval.
Best regards.Hi, if you create a shape vector from director, the reg point
is in the center of it; if you import a vector created in other
aplication (flash), the regpoint is in the top left corner. To
change the regpoint of an imported shape, try this:
put your shape in the stage in x,y = 0,0 position, then, if
your shape rect is 12,8 pixs, and if you want to move the regpoint
to the center of it
on preparemovie me
member("yourshape").regpoint = point(6,4)
end
play and stop the movie, your shape will change the regpoint
to 6,4
remove the script, and that's all.
Best regards.
sayeg -
How to change the file permission?
Hi,
when i create a file in UNIX, i want change the permission file,
I used
Process pgrant = Runtime.getRuntime().exec("chmod 777 "+file.getName());
but i riceive the following error
java.io.IOException: chmod: not found
What can i do?
Regards,
esmeralda13either call the chmod executable with it's full path, or make sure that the shell your Java app is running in has it's path set correctly.
- K -
I have an Issue.
When I create an Outbound Delivery in VL01 my file path is getting update.
But it is updating in format of Idoc Message Type "WHSORD" and Basic Type "Delivery03".
Now I want to change my format from Idoc type to my Custom format.
Do you have any suggestion where I need to do my Enhancement or to Implement and BADI.
Thanks in Advance.
Thanks & Regards
NickelI have an Issue.
When I create an Outbound Delivery in VL01 my file path is getting update.
But it is updating in format of Idoc Message Type "WHSORD" and Basic Type "Delivery03".
Now I want to change my format from Idoc type to my Custom format.
Do you have any suggestion where I need to do my Enhancement or to Implement and BADI.
Thanks in Advance.
Thanks & Regards
Nickel -
How to change the endpoint url of the siebel service ?
Hi All,
JDev : 11.1.1.5
I am fetching data from the siebel webservice. I created the proxy client from the Siebel WSDL in the JDeveloper. It was working fine.
Now the endpoint URL(Server) is changed. This service fails to connect to that server. The service name is same.
I want to fetch the end point urls from a property file, so that, even again if the server is changed, i have to change it in my property file.
How to change the End point URL at runtime before calling the service ?
This is my endpoint URL.
http://oa8181.us.oracle.com:10800/eai_enu/start.swe/#%7Bhttp%3A%2F%2Fpolicing.oracle.com%2F%7DPolicing_spcQuery_spcIncidents_spcWF?wsdl?SWEExtSource=WebService&SWEExtCmd=Execute&UserName=AUSTINP&Password=AUSTINP
Now it is pointing to this
http://oa8023.us.oracle.com:7777/eai_enu/start.swe/#%7Bhttp%3A%2F%2Fpolicing.oracle.com%2F%7DPolicing_spcQuery_spcIncidents_spcWF?wsdl?SWEExtSource=WebService&SWEExtCmd=Execute&UserName=AUSTINP&Password=AUSTINP
Give me some solution.See if this helps:
http://kingsfleet.blogspot.co.uk/2008/12/controlling-what-service-proxy-uses-at.html -
Changing the file name of a PDF you send via email
Hello Support,
I am trying to find out how to change the file name of the attachment I send via email when I click submit via email. I would like the file to be sent with the file name, not some other file name.
How can I fix it? This is very urgent! I need HELP!
Cheers
Joel
Message was edited by: J BradenHi,
you can't.
Except you save the file under a different name before you send it. -
hi guys,
i hv a requirnment in which i need to read a file which is in .CGL format on a shared network path or application server which is nt possible to read directly so i need to first change the format of the file to .CSV and then read it using the FM KCD_CSV_FILE_TO_INTERN_CONVERT .
so plz tel me how to change the file extension
thanks
shivrajNot quite sure how you arrived at conclusion that CGL must be converted to CSV... CGL might turn out to be just a plain text file (e.g. many log files have .LOG extension but are just plain texts), in which case you can simply read it directly. Whether you'll be able to make sense of the file data - is another question and it depends on what is in that CGL file. Again, conversion to CSV might not even help.
If CGL file is a proprietary format, you might not be able to read it in SAP at all without using some third-party tool.
More info on CGL extension:
http://pcsupport.about.com/od/fileextensions/f/cglfile.htm -
Change the file set icons system wide
Hello,
I am trying to change all my .html, .js, .css file sets, system wide. Right now they are all the plain boring white with text. If I go into a folder they quickly appear with their more colorful Dreamweaver, photoshop, etc icon, but quickly jump back to the plain white, boring icon. I know how to change the files icons one by one, but obviously that could take a while.
Looking for an easy way to change my files system wide wothout screwing anything up. Recently came from a PC and loving my mac (never going back).
Thanks in advance!Hi
Still no :o)
The only way around it, is to wrap your conc process that generates the etext output either with another program or if its an Oracle Report based program, in the after report trigger. That will get a handle on the generated file, easy enough cos you'll know the requestid, and then copy and rename it to the same or another location. We used to do this for a payments process in the Netherlands localization we ship.
Tim -
My computer is saying it can't find the file 'iTunes64.msi' when I try to update or redownload iTunes how do I fix this? I've tried just about everything I can think of. I am using a dell laptop running windows 7 and have tried changing the file location to run the update in all of my iTunes files as well as when I've tried reinstalling it.
For general advice see Troubleshooting issues with iTunes for Windows updates.
The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
The further information area has direct links to the current and recent builds in case you have problems downloading, need to revert to an older version or want to try the iTunes for Windows (64-bit - for older video cards) release as a workaround for installation or performance issues, or compatibility with QuickTime or third party software.
Your library should be unaffected by these steps but there are also links to backup and recovery advice should it be needed.
tt2 -
Can someone tell me how to change obj file in the applet
Thanks in advance.
I have try to use the ObjLoad example in the java3d demo to
change the obj file.But I fail to do this.
I had use twe applet,one to change name,and then refresh the other
frame to try to relod th obj file. but
java.lang.NullPointerException
at ObjLoad.init(ObjLoad.java:150)
at sun.applet.AppletPanel.run(AppletPanel.java:348)
at java.lang.Thread.run(Thread.java:536)
can you help me?
thanksSun's Java3d FlyThrough Demo & Java3d Scenegraph Editor
allow you to load mutiple 3d files (sequencially) including VRML
files with the Sun VRML Loaders at run-time
-- and the Java Source Code is free --- ( see below )
First, try a Web Demo of the "Appearance Explorer" :
"Appearance Explorer" Java3d Web Applet, Loads multiple ".obj"
http://web3dbooks.com/java3d/jumpstart/AppearanceExplorer.html
- click on "Data"
- click on "Obj File: Galleon" -- or -- "Obj File: Beethoven"
- rinse, rather, repeat.
|
http://web3dbooks.com/java3d/jumpstart/Java3DExplorer.html
http://web3dbooks.com/java3d/jumpstart/J3DJumpStart.zip
| ^-- free source code
|
http://www.frontiernet.net/~imaging/games_with_java3d.html
| Sun's Java3d Scenegraph Editor showing a Nasa VRML model
| --------------------------------------------------------
|
| uses the Sun VRML Loaders, source code available and is free.
|
| [ at this url: ] http://java3d.netbeans.org/j3deditor_intro.html
|
http://www.frontiernet.net/~imaging/terrain_rendering.html#Scenegraph_Editor
http://www.frontiernet.net/~imaging/terrain_rendering.html
Selman wrote a Java3d book that was well received
and has a Swingtest.java applet and application that
allows you to load objects dynamically,
ie. "change" the viewed object when it is running by
allowing the user to select "sphere" or "cube" from
menu lists ( in this case it's not just displaying
Jav3d primative objects, but it has the core functionality
of deleteing and adding nodes in the scene graph that you
are seeking, and at that point the rest is left as
exercise to the student. The ObjLoad.java in Sun's Demos
directory has the code to load ".obj" files, so you have
all the tools you need.
| Picking of VRML objects with your mouse is demonstrated
| in a new book, Java 3D Programming, by Daniel Selman
| ( shown on the left ).
|
| The source code is avaible for free.
|
| [ here: ] http://www.manning.com/selman/selman_source.zip
|
| This new book uses the old, reliable Sun VRML Loaders for Java3d.
|
| The program reads a 3d scene as a simple VRML text file,
| and displays the Java3d Scene Graph ( which is interactive,
| you can expand and collapse the branches of the scenegraph
| and examine the contents of the nodes ), it renders the
| 3d scene, and when you click on an object it tells you
| what you clicked on.
|
| You can see ( and download ) the Java Source code of
| the operative file: VrmlPickingTest.java
|
| The publisher's site has more informatation on the book.
|
http://www.frontiernet.net/~imaging/games_with_java3d.html
http://www.frontiernet.net/~imaging/sourcecode/VrmlPickingTest.java
The Prentice-Hall books by Aaron Walsh are false & fraudulent
in their claims to present the most current methods, as a part
of the "Couch-Beiter Flame War" and fraud involving Sandy Ressler
at the NIST. Prentice-Hall, Yumetech.com and Aaron Walsh have
misrepresented and disparaged the old & reliable Sun VRML Loaders
in favor of the "new" Yumetech.com Loader, and the web demo above
__ DOES NOT __ load Web3d.org's __ VRML __ files, only the less
capable ".obj" files ... so the "Web3d" series of books from Prentice-Hall
does not show the loading of ___ Web3d.org 's ___ VRML __ files
because Sun's VRML Loaders were the best ones, and the Yumetech.com
folks didn't want anyone using those, and started the "Couch-Beitler Flame War"
to disparage, falsely & fraudulently misrepresent the facts and knowingly
published false and misleading "disinformation" in the
unreliable Prentice-Hall / Pearson Ed books, harming our community.
The Sun VRML Loaders are used by __ Nasa, __
the NSF supported Virtual Chemistry Lab ( "Lab3d" ),
me, and others simply choosing the "what works best",
and by people using Sun's Java3d FlyThrough & Java Scenegraph Editor.
symsan wrote:
|
| Thanks a lot,but can you give some code
| about to change the Obj file or vrml file,
| when the user in the browser to choose
| the file or input to the textField ?
|
I misunderstood the original question ( it was too terse ).
I interpreted the question has how to change the loaded
objects --- between successive runs of the program ---
and not as you intended -- dynamicall while running
the program program without quiting & restarting.
In a "Java3d" forum I'm not going to wander into
how basic ( non-Java3d) 2d commonents such as TextFields
are programmed.
The original Vrml97Player.java file that came with
Sun VRML Loaders also implemented the functionality
of loading mulitiple files ( sequentically during one run )
and I have worked with that and similar things with
the Shout3d.com engine and my own 3d Java engines.
-- Paul, Java Developer & Web Animator
Imaging the Imagined: Modeling with Math & a Keyboard -
How to change the default "Safe" files in Safari?
I would really appreciate if anybody could teach me how to change the default "Safe" files using AppleScripts, Folder Actions or .plist files. I really would like to have some files to open automatically after download, specially .pps files, and safari doesn't recognize such files as "safe". I tried to find out reading the help files but got lost.
I posted a reply in an old topic for somebody who seemed to know, but it was not related to that topic, so I decided to open a new one.
I'll be gratefull for any help. Thanks.Hi MDRC,
Have a read of [this topic|http://discussions.apple.com/thread.jspa?threadID=1237961] to see if that helps. -
How to change the default password file's name and path when the database created?
how to change the default password file's name and path when the database created?
nullUsage: orapwd file=<fname> password=<password> entries=<users>
where
file - name of password file (mand),
password - password for SYS and INTERNAL (mand),
entries - maximum number of distinct DBA and OPERs (opt),
There are no spaces around the equal-to (=) character.
Maybe you are looking for
-
Hello, I am using LabVIEW 8.0 and I am attempting to create a sub-panel that displays the front panel of a sub-vi depending on the selection made by the user via the Enum dropdown menu. I have wired the Enum to a case structure and applied identical
-
Data Recovery for Macbook Air when repair efforts failed
My computer is unable to boot and stays on the gray screen. I've tried to repair my computer with every method up to disk utility but nothing will work, so I want to back up my computer if possible before reinstalling the software. I don't use time m
-
Ok here's my situation... I'm having to catch up in my software development class at university, missed a few lessons so now I'm finding it incredibly difficult. I'm working through a bluej book 'Objects First with Java' and as much as I'd like to si
-
Issues converting scroll bar components from AS2 to AS3
I am working on editing a document that has scroll bar components that I would like to convert from AS2 to AS3 since everytime I try to open the document it shows a WARNING and won't convert them and when I publish and look at the final document the
-
How can I upload photos from ipad onto facebook whithout using adobe flash player which I could not download onto my ipad?