Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
T

terzasek

@terzasek
About
Posts
1
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • help me please
    T terzasek

    how to write main class for run this class. 1. edit this class. 2. create main class for run I need to write , read text file path C:\\file.txt anyone help me please. package import java.io.*; public class TextFileOperator { public TextFileOperator(String path){ f = new File(path); } File f; public void write(String text, boolean isAppend){ FileOutputStream out = new FileOutputStream(f,isAppend); OutputStreamWriter wr = new OutputStreamWriter(out); wr.write(text); wr.close(); out.close(); } public String read() { FileReader reader = new FileReader(f); BufferedReader bf = new BufferedReader(reader); StringBuilder bd = new StringBuilder(); String s; while((s = bf.readLine()) != null){ bd.append(s); bd.append("\n"); } return bd.toString(); } }

    Java java help tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups