| | |
creating, editing, modifying,viewing files
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
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 |
-xlint android api applet application array arrays automation bi binary blackberry block bluetooth chat class classes client code compile compiler component database developmenthelp eclipse error event exception fractal freeze game gameprogramming givemetehcodez graphics gui health html ide image input integer j2me j2seprojects java javac javaprojects jetbrains jni jpanel jtable julia learningresources lego linux list login loop loops mac map method methods mobile netbeans newbie notdisplaying number online oracle page print problem program programming project qt recursion scanner screen server set singleton size sms sort sql string swing system template textfields threads time title tree tutorial-sample update variablebinding windows working xor





