| | |
creating, editing, modifying,viewing files
![]() |
•
•
Join Date: Aug 2009
Posts: 36
Reputation:
Solved Threads: 0
I want to create a program where i can create data files, either in text, binary: data or objects. Once the data files are created by the user they can be used to view them in all modes. They should view existing data files in the current or sub directory by having a drop down select list (but i don't know if Java can do a "dir" command).
I also want the view part to be able to tell what type of file it is. So i would be able to open the correct stream (DataInputStream, ObjectInputStream, etc.).
It would be nice to see how they look in all three views too.
If it's in binary, i still want to be able to see it text view to see what the contents are.
Also, i would like to convert text to binary and binary to text.
I would appreciate some tips for anyone who has tried any of the above.
I also want the view part to be able to tell what type of file it is. So i would be able to open the correct stream (DataInputStream, ObjectInputStream, etc.).
It would be nice to see how they look in all three views too.
If it's in binary, i still want to be able to see it text view to see what the contents are.
Also, i would like to convert text to binary and binary to text.
I would appreciate some tips for anyone who has tried any of the above.
Hello,
Study on File , ByteArrayInputStream, ByteArrayOutputStream, DataInputStream and DataOutputStream classes of java.io package. This is all you have to do. If you do a smart search, You will get code for this program as its really common.
use listFiles() method of java.io.File class to get list of all files in a specific folder.
For more info on java.io package
Regards,
Study on File , ByteArrayInputStream, ByteArrayOutputStream, DataInputStream and DataOutputStream classes of java.io package. This is all you have to do. If you do a smart search, You will get code for this program as its really common.
use listFiles() method of java.io.File class to get list of all files in a specific folder.
For more info on java.io package
Regards,
Puneet Kalra
www.PuneetK.com
Sun Certified Java Programmer
Admin of Pikk - Object Relational Mapping Framework
www.PuneetK.com
Sun Certified Java Programmer
Admin of Pikk - Object Relational Mapping Framework
![]() |
Similar Threads
- Share folder & files and setting permission on C# over the internet (C#)
- Creating a folder and then move predefined files into it? (C)
- Viewing Files on Your iPod (Windows Vista and Windows 7)
- Modifying exe files (Windows NT / 2000 / XP)
- How do you get Python to find and delete multiple files? (Python)
- Lost All My Hard Drive Space editing wav files (Windows NT / 2000 / XP)
- Help with Networking laptops and SAGE (Windows Software)
Other Threads in the Java Forum
- Previous Thread: .getImage returns -1
- Next Thread: how to control the size of applet
| Thread Tools | Search this Thread |
account android api applet application array arrays automation awt bidirectional binary birt bluetooth busy_handler(null) chat class classes client code columns component database designadrawingapplicationusingjavajslider draw eclipse error errors eventlistener exception expand fractal game givemetehcodez graphics gui guidancer homework html ide image inetaddress inheritance integer intellij j2me java javamicroeditionuseofmotionsensor javaprojects jlabel jme jni jpanel jtextfield julia linux list loop map method methods midlethttpconnection mobile mobiledevelopmentcreatejar monitoring myaggfun netbeans newbie nullpointerexception open-source plazmic print problem program programming project property recursion ria scanner search server set smart sms smsspam sort sourcelabs splash sql sqlite static string subclass support swing testautomation threads tree webservices windows





