How to get the pointer to a file ?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
zalander
Citizen
Posts: 72
Joined: Mon Jan 09, 2023 5:58 am
Location: India

How to get the pointer to a file ?

Post by zalander »

Sup
The title is pretty self explanatory.

Code: Select all

file = love.filesystem.newFile("In love with love2d.txt")
-- How the get the pointer ?
Using LOVE to make everything except games :crazy:

Code: Select all

astring = "pog"
print(astring)
--pog
User avatar
dusoft
Party member
Posts: 510
Joined: Fri Nov 08, 2013 12:07 am
Location: Europe usually
Contact:

Re: How to get the pointer to a file ?

Post by dusoft »

Is it self explanatory, though?

Code: Select all

file
is your variable that you can use with functions like open or close...

https://love2d.org/wiki/File

And if by pointer you mean position, then:
https://love2d.org/wiki/(File):seek
User avatar
zalander
Citizen
Posts: 72
Joined: Mon Jan 09, 2023 5:58 am
Location: India

Re: How to get the pointer to a file ?

Post by zalander »

Nwm figured it out thanks for the help though.
Using LOVE to make everything except games :crazy:

Code: Select all

astring = "pog"
print(astring)
--pog
Post Reply

Who is online

Users browsing this forum: No registered users and 65 guests