edit « Operation « Java I/O Q&A





1. How to use Java to edit a template document (form letter) from a file?    stackoverflow.com

I'm playing with Java for the first time and need to be able to replace some words in a template. example template - "Dear PUT_THEIR_NAME_HERE, I'm contacting you ..... bla bla bla Regards, PUT_COMPANY_NAME_HERE" What's ...

2. Reading a file and editing it in Java    stackoverflow.com

What I am doing is I am reading in a html file and I am looking for a specific location in the html for me to enter some text. So I am ...

3. Editing a 1MB file continuously, what's more efficient?    stackoverflow.com

I've to be continuously editing a 1MB file, simulating a file system. I've to modify the directory of File Control Blocks, FAT, blocks, etc. Proffesor recommended overwriting the file every time an ...

4. Is there a java classfile / bytecode editor to edit instructions?    stackoverflow.com

Is there a utility (or eclipse plugin) for editing java class files? I'd like to manipulate the bytecode of a java class file without recompiling it nor having a complete buildpath. E.g. to ...

5. Keeping track of punctuation, spacing, when editing a file in Java    stackoverflow.com

I'm writing a program to delete duplicate consecutive words from a text file, then replaces that text file without the duplicates. I know that my current code does not handle ...

6. Java Program to edit file to select records    stackoverflow.com

I have the following XML file:

<graph caption="ECG Data Wave" subcaption="For Person's Name" xAxisName="Time" yAxisMinValue="-0.025" yAxisName="Voltage" decimalPrecision="5" formatNumberScale="0" numberPrefix="" showNames="1" showValues="0" showAlternateHGridColor="1" AlternateHGridColor="ff5904" divLineColor="ff5904" divLineAlpha="20" alternateHGridAlpha="5">
    <set name="12:00:00.01" value="0.600000" ...

7. Edit a file with an external application in Java and write back?    stackoverflow.com

How do you edit a file from a Java application when you do not know which application the file is associated with. Also, because I'm using Java, I'd prefer a platform ...

8. How edit File to MyFile    stackoverflow.com

I have a program, it uses a standard class File. The ArrayList. I need to replace your class MyFile and really want to change the collection ArrayList to List . class MyFile

public class MyFile ...

9. Run file with default program and wait until end of edit    stackoverflow.com

I want to open file dowloaded from server with default program and wait until edit is completed (to upload changed file on server). I made this in such way:

public void init() ...





10. Java API or library to edit MS Office or Open Office files using UI    stackoverflow.com

Is there a Java API or library available to edit MS office or open office files using user interface and that could be attached with a Java project? I know about Apache ...

11. Has anyone ever used com.toalango.util.file.Edit ?    coderanch.com

This class appears to have functions which would allow me to pass in a file array and a string to search for, returning (assumed) the files which do contain that string. The JavaDoc is incomplete so I was hoping someone else has experimented with this and had some success. Searches on both google and JavaRanch have proven to be unsuccessful. FYI.. ...

12. Editing a file    coderanch.com

Hi, welcome to to the ranch! There are some random access techniques to modify a file in place and insert and remove data but it's pretty tricky and it would be hard to show it's worth the effort. The easier way is to read the input, edit in memory and write a new file. Here you have two options. One is ...

13. File editing    coderanch.com

Hi everyone! I would like to make a program, which: - opens a File - starts copying it to another, until it finds a given String(a sentence for example). It checks for the given string when it reaches the closing character ".". - It writes the sentence as well, but puts something before and after it(a HTML tag) What i have ...

14. file edit    coderanch.com

15. Editing compiled Java files    coderanch.com

Hi Cody, Welcome to the Java Ranch. When you compile, you are turning the source code into a bytecode class file. You would have started with a file with a .java extension, this is your source code. After you have compiled a source code file, you will be left with two files: a compiled class file (.class) and the original source ...

16. Edit File    coderanch.com

Ok, anyway I made it: package test; import java.io.File; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.io.LineNumberReader; import java.util.List; import java.util.StringTokenizer; import javolution.util.FastList; public class Test { private static final List _FullText = new FastList(); static String text1 = "something"; public static void main(String[] args) { loadText(); addText(text1); saveToDisk(); } public static void loadText() { File file = new File("C:/WINDOWS/system32/drivers/etc/hosts"); if ...





17. editing a file. Am I doing this right?    java-forums.org

I'm currently helping make a game with my friends and we have character sheets. each .txt files contains information about the player. right now i'm trying to get it to search the inventory. I'm trying to read the scanner has next. If the scanner == a String ("InventoryStart") It should start at the inventory slots. for whatever reason it is not ...

18. Effecient way to edit a file in Java    forums.oracle.com

I'm writing software for my company that is basically a primitive database (using a text file) to store entries for people that have filled out a warranty card. Right now the list is very small, less than 1000 entries, so access times don't cause very noticeable delays, but I wanted to build the program so that once the list grew, my ...

19. Edit HTML File using java    forums.oracle.com

20. Editing manafest file.    forums.oracle.com

STARZ wrote: Oh, I watched a video and someone had it open in notepad where he edited it. Well, yeah. You can edit the manifest in Notepad (if you are using an impoverished environment which doesn't include any better text editor (which is every other text editor in the world)). But first you have to get it out of the jar. ...

21. Editing large files    forums.oracle.com

I was wondering how one would edit a large file? I don't know much about data structures but if I had a dictionary program that keeps thousands of words and definitions in a file, how would I go about making additions or small changes to it? Wouldn't making a small change would require the entire file to be rewritten? That wouldn't ...

22. edit pipe delimeted file    forums.oracle.com

vik1491 wrote: i cant see how the replace methods will work? I can use split easily enough and do some subsequent concatenations but this doesnt seem like the best way I can't see how you can't see that you can't use a replace method for this... I mean, you want to change a certain value of which the position isn't clear. ...

23. edit hosts file    forums.oracle.com

Sorry, you are right about that the code is fine. I ran a test with the hosts file copied into the desktop and it works, so the next question is there any way to say to the java program to use "administrative privileges"??? the problem of not writtong is because this file is in an system foldler and I'm in Windows ...

24. Help editing a file    forums.oracle.com

Hello all, First of all, this is not for school or any class or assignment. I need help sorting through a text file and deleting certain lines. I would like to delete all lines that have identical timestamps, (date-created) which is the third column. For instance, the italicized line would be deleted. 483801 0 02:23.5 66314 483802 0 02:23.5 66314 The ...

26. Editing a file online    forums.oracle.com

me_right_now wrote: Hah hah. Well, I guess I'm going to end up using MySQL database because I don't think there is a better approach. Why the sudden flip-flop? Nobody here has suggested that you use MySQL or that it's an appropriate approach. They couldn't have because you didn't provide any information as to your requirements and goals. All they did was ...

27. Preventing user from editing, saving and printing files    forums.oracle.com

1) Files are viewable to users in a web base java program. but i want to restrict them from editing, saving or printing that files.Since the files can be any type of files(word,excel,xml ,ect), i could not use PDF functionality. i googled but i found this solution for excel file only for visual basic program and not for java. and is ...

28. Edit ODT Files    forums.oracle.com

Hi Friends, I need some ideas here. An ODT file, I noticed, is a zip file containing, amongst others, an xml file that one can get the text contents of the file from. But that may not be of interest, or may it? Suppose a file exists and it contains the text "We are all equal" that I want to load ...

29. Edit a Score File    forums.oracle.com

I have create a game, but I need to save the top ten scores in a text file. something like this: Name1 Subname1 150000 Name2 Subname2 85654 Name3 Subname3 7432 Name4 Subname4 985 Name5 Subname5 500 Name6 Subname6 412 Name7 Subname7 321 Name8 Subname8 100 Name9 Subname9 85 Name10 Subname10 40 Problem is when the player have to insert his name ...