answersLogoWhite

0


Best Answer

you can use inputstream for reading the file java.io.fileinputstream and write the file using outputstream..

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you read and write video file in java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How read xml file in java?

Java provides several XML Parsers like DOM, SAX or JDOM and API javax.xml.parsers by using those we can easily read xml files in Java. DOM is quickest and easiest way to read XMlL file in Java.


Write java program to merge alternate lines from file1 and file2 into file1?

I suggest something like this:* Open file1 and file2 * Create a temporary output file, for writing * Read a line from file1, write it into the output file * Read a line from file2, write it into the output file * Repeat the previous two steps, while you are not at end-of-file in either of the two files * At this point, if you are NOT at end-of-file in file1, read the remaining lines of file1, and write them to the output (you can write a loop for this). * Similarly, if you are NOT at end-of-file in file2, read and write the remaining file. * Close file1, file2, and the output file. * Copy the temporary output file back to file1 * Erase the temporary output file


Program in Java to create file and copy content of an existing file to it?

You need to use File class to create file in java and than Reader class implementation such as BufferedReder to read content.


What is meant by read and write txt in file handling?

read: moving data from file to memory write: moving data from memory to file


What file systems does Ubuntu support?

Ubuntu supports a large number of file systems, including ext2 (read/write), ext3 (read/write), ext4 (read/write), ReiserFS (read/write), JFS (read/write), XFS (read/write), FAT (read/write), and NTFS (read, additional software available for writing). With the exception of NTFS, it can also boot off of the above file systems.

Related questions

How read xml file in java?

Java provides several XML Parsers like DOM, SAX or JDOM and API javax.xml.parsers by using those we can easily read xml files in Java. DOM is quickest and easiest way to read XMlL file in Java.


What type of video file does the R4 read?

video file and R4?


Write java program to merge alternate lines from file1 and file2 into file1?

I suggest something like this:* Open file1 and file2 * Create a temporary output file, for writing * Read a line from file1, write it into the output file * Read a line from file2, write it into the output file * Repeat the previous two steps, while you are not at end-of-file in either of the two files * At this point, if you are NOT at end-of-file in file1, read the remaining lines of file1, and write them to the output (you can write a loop for this). * Similarly, if you are NOT at end-of-file in file2, read and write the remaining file. * Close file1, file2, and the output file. * Copy the temporary output file back to file1 * Erase the temporary output file


Program in Java to create file and copy content of an existing file to it?

You need to use File class to create file in java and than Reader class implementation such as BufferedReder to read content.


What are typical access rights that may be granted or denied to a particular user for a particular file?

Read, write, execute, and functions in software objects.


What is meant by read and write txt in file handling?

read: moving data from file to memory write: moving data from memory to file


What file systems does Ubuntu support?

Ubuntu supports a large number of file systems, including ext2 (read/write), ext3 (read/write), ext4 (read/write), ReiserFS (read/write), JFS (read/write), XFS (read/write), FAT (read/write), and NTFS (read, additional software available for writing). With the exception of NTFS, it can also boot off of the above file systems.


What abilities does the NTFS write permission grant?

Write to the file, append to the file, and read or change its attributes.


How do you open class files on windows 7?

right click on the class file ,go to properties and change open with to notepad, and then it can be opened.. :) While that may work, it is almost impossible to read as it is. What I suggest is downloading a java decompiler, then open it with that. It will convert it to what you would see in a .java file, which you are able to read if you know java programming.


How can you read and write to files in C programming language?

We can read and write to files with the help of file commands in c programming.There are so many commands related to file for read,write,append,delete etc.


A package in java that contains a collection of classes that allow you to read and write to streams?

java.io


How do you read contents of pdf file using java?

Not sure if Java is capable of that but you can download a PDF text reader at this site: http://www.ctdeveloping.com/ctdeveloping/products/pdftextreader_info.asp