• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Upload data into notepad

 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I have to upload the data from database(MYSQL) into the notepad.the data is coming from website which i m entering into the database but at the same time i want to fetch the same dta from database and upload that itno the notepad. Please tell me how to do it.

here is what i am doing...


in the line where i am inserting data, i am trying to insert that data into an excel sheet but i want to do the same in notepad.. what to do and where do i need to change the code??

thanks in advance..
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What does it mean to "insert data into Notepad"? Do you want to create a text file that can be edited in Notepad? While there are ways to use JDBC to insert data into an Excel file, AFAIK, the same isn't true for text files. But you can use the classes in the java.io package to create and write to text files.

 
duhit Choudhary
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:
What does it mean to "insert data into Notepad"? Do you want to create a text file that can be edited in Notepad? While there are ways to use JDBC to insert data into an Excel file, AFAIK, the same isn't true for text files. But you can use the classes in the java.io package to create and write to text files.



i just want to insert the column values with the column name same in the database.. isn't it possible?
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry, not following. Where does the data come from and where do you want it to end up? Now it sounds as if the data should end up in the DB... ?
 
duhit Choudhary
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i am getting all the data from a website. url and its id. now i wnt to get these two column value in the notepad & want to end it up in notepad?? i think now you got my point!!!
 
duhit Choudhary
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ok.. now to be more precise can we directly got those values from website and put it in notepad???
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
While I'm still not entirely sure what you mean by "put it in notepad", I'll assume that you want the data to go into a file that can be opened by Notepad. Notepad being very limited, that would be a text file. So the advice I gave in my first post applies - use the classes in the java.io package to write to that file, particularly some combination of File, FileOutputStream, OutputStreamWriter and BufferedWriter.
 
Did you just should on me? You should read this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic