This week's book giveaway is in the Java in General forum.
We're giving away four copies of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 and have ishori Sharan & Adam L Davis on-line!
See this thread for details.
Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!

Jakub Novak

Greenhorn
+ Follow
since Nov 03, 2020
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jakub Novak

John Matthews wrote:Hi Jakub

Yes. The first argument to fopen() is a char pointer which points to the file path string. fopen() doesn't care where that file path has come from - it can be a fixed string eg. "dir/file.dat", or a char array whose contents (string) have been entered by the user.

Do you know how to read a string from the user? Do you have some code you can show us?



Thanks, I figured it out. Your advice actually really helped me.
1 year ago
function fopen - Is it possible to have the path (filename) like an input. In my case the path to the file must be written by the user of the program. How can I do it? thanks
1 year ago