Ask coding questions

← Back to all posts
these are my codes
Jude11 (2)

Screen Shot 2020-04-14 at 11.21.39 PM(https://storage.goo

gleapis.com/replit/images/1586896389785_817fbc72696d64697c23151876c6076a.png)

Comments
hotnewtop
Warhawk947 (552)

what do you need help with?

RitwickVerma (0)

Here, you ran the code it is working ??

Jude11 (2)

these two are working but then I want to thisWrite a program which reads data from ‘test.txt’ file and converts all characters into upper case and then writes back them into ‘output.txt’ file in the same directory. Your program should check if output.txt exists or not, if it doesn’t exist create a new one.
it tells me that file not found. I think there is a mistake in one of these two codes

RitwickVerma (0)

@Jude11
Here in screenshot check the above program making file output.txt with all character uppercase

RitwickVerma (0)

@Jude11 run it using the run command above

Jude11 (2)

I did the third code ( which is the question I commented below) but it tells me that file is not found even though I did these [email protected]

RitwickVerma (0)

@Jude11 do one thing see put test file in the below folder and remove "c:\test" as i put in screenshot

RitwickVerma (0)

when you use import no need for java.io

Jude11 (2)

Write a program which reads data from ‘test.txt’ file and converts all characters into upper case and then writes back them into ‘output.txt’ file in the same directory. Your program should check if output.txt exists or not, if it doesn’t exist create a new one.

malvoliothegood (845)

What is it you want help with?