#Creating a txt file in a specific folder

7 messages · Page 1 of 1 (latest)

supple igloo
#

Does anyone know how to make a file in a specific folder on your computer?

cyan mistBOT
#

This post has been reserved for your question.

Hey @supple igloo! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

unique orchid
#

there's also another way, just opening a new FileOutputStream on the file should create one if it doesn't already exist, but using raw FileOutputStreams is almost always superseded by new equivalents

#

generally, anything File related is done better with the Path api and Files